Skip to content

Commit

Permalink
address review
Browse files Browse the repository at this point in the history
  • Loading branch information
haritha-mohan committed Feb 23, 2024
1 parent 7d2f8cb commit b011e65
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/common/DotNet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static ExecutionResult InstallTool (string tool, string path)
{
var installed = ExecuteCommand (Executable, "tool", "list", "--tool-path", path);
if (!installed.StandardOutput.ToString ().Contains (tool))
ExecuteCommand (Executable, "tool", "install", tool, "--tool-path", path);
installed = ExecuteCommand (Executable, "tool", "install", tool, "--tool-path", path);
return installed;
}

Expand Down
1 change: 0 additions & 1 deletion tests/dotnet/UnitTests/Extensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Diagnostics;
using System.IO;

#nullable enable
Expand Down
2 changes: 1 addition & 1 deletion tests/dotnet/UnitTests/ProjectTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,7 @@ public void SourcelinkTest (ApplePlatform platform, string runtimeIdentifiers, s
var tool = "sourcelink";
var toolPath = Directory.GetCurrentDirectory ();
DotNet.InstallTool (tool, toolPath);
var test = DotNet.RunTool ($"{toolPath}/{tool}", "test", $"{pdbFile}");
var test = DotNet.RunTool (Path.Combine (toolPath, tool), "test", pdbFile!);

Assert.AreEqual ($"sourcelink test passed: {pdbFile}", test.StandardOutput.ToString ());
}
Expand Down

0 comments on commit b011e65

Please sign in to comment.