Skip to content

Commit

Permalink
Exclude Windows-only test
Browse files Browse the repository at this point in the history
  • Loading branch information
ashovlin committed Jun 28, 2024
1 parent b22ed89 commit 9db5758
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ public async Task ContainerOnlyRecipe_DockerMissing_NoCache()
[Fact]
public async Task ContainerOnlyRecipe_DockerInWindowsMode_NoCache()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
// Docker only supports Windows vs. Linux mode when running on Windows, so
// this test isn't valid on other OSes since we always assume "linux"
return;
}

var commandLineWrapper = new TestCommandLineWrapper();
commandLineWrapper.MockedResults.Add(_expectedNodeCommand, new TryRunResult { ExitCode = 0, StandardOut = "v18.16.1" });
commandLineWrapper.MockedResults.Add(_expectedDockerCommand, new TryRunResult { ExitCode = 0, StandardOut = "windows" });
Expand Down

0 comments on commit 9db5758

Please sign in to comment.