Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/6.0-preview4] Clean Installer test #51568

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ public void Run_apphost_behind_transitive_symlinks(string firstSymlinkRelativePa

var appExe = fixture.TestProject.AppExe;
var testDir = Directory.GetParent(fixture.TestProject.Location).ToString();
Directory.CreateDirectory(Path.Combine(testDir, Path.GetDirectoryName(firstSymlinkRelativePath)));
Directory.CreateDirectory(Path.Combine(testDir, Path.GetDirectoryName(secondSymlinkRelativePath)));

// second symlink -> apphost
string secondSymbolicLink = Path.Combine(testDir, secondSymlinkRelativePath);
Directory.CreateDirectory(Path.GetDirectoryName(secondSymbolicLink));
CreateSymbolicLink(secondSymbolicLink, appExe);

// first symlink -> second symlink
string firstSymbolicLink = Path.Combine(testDir, firstSymlinkRelativePath);
Directory.CreateDirectory(Path.GetDirectoryName(firstSymbolicLink));
CreateSymbolicLink(firstSymbolicLink, secondSymbolicLink);

Command.Create(firstSymbolicLink)
Expand All @@ -86,12 +86,6 @@ public void Run_apphost_behind_transitive_symlinks(string firstSymlinkRelativePa
.Execute()
.Should().Pass()
.And.HaveStdOutContaining("Hello World");

if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
Directory.Delete(firstSymbolicLink);
Directory.Delete(secondSymbolicLink);
}
}

//[Theory]
Expand Down Expand Up @@ -199,11 +193,6 @@ public void Put_dotnet_behind_symlink()
.Execute()
.Should().Pass()
.And.HaveStdOutContaining("Hello World");

if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
Directory.Delete(dotnetSymlink);
}
}

[Fact]
Expand Down