Skip to content
Merged
Changes from 3 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
6 changes: 3 additions & 3 deletions src/Utilities.UnitTests/ToolTask_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -683,16 +683,16 @@ public void FindOnPathSucceeds()
string shellName;
if (NativeMethodsShared.IsWindows)
{
expectedCmdPath = new[] { Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "cmd.exe") };
expectedCmdPath = new[] { Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "cmd.exe").ToUpperInvariant() };
shellName = "cmd.exe";
}
else
{
expectedCmdPath = new[] { "/bin/sh", "/usr/bin/sh" };
expectedCmdPath = new[] { "/bin/sh".ToUpperInvariant(), "/usr/bin/sh".ToUpperInvariant() };
shellName = "sh";
}

string cmdPath = ToolTask.FindOnPath(shellName);
string cmdPath = ToolTask.FindOnPath(shellName).ToUpperInvariant();

cmdPath.ShouldBeOneOf(expectedCmdPath);
}
Expand Down