Skip to content

Commit 2d0b078

Browse files
committed
Exclude Windows-only test
1 parent db9ffdd commit 2d0b078

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/AWS.Deploy.Orchestration.UnitTests/SystemCapabilityEvaluatorTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ public async Task ContainerOnlyRecipe_DockerMissing_NoCache()
137137
[Fact]
138138
public async Task ContainerOnlyRecipe_DockerInWindowsMode_NoCache()
139139
{
140+
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
141+
{
142+
// Docker only supports Windows vs. Linux mode when running on Windows, so
143+
// this test isn't valid on other OSes since we always assume "linux"
144+
return;
145+
}
146+
140147
var commandLineWrapper = new TestCommandLineWrapper();
141148
commandLineWrapper.MockedResults.Add(_expectedNodeCommand, new TryRunResult { ExitCode = 0, StandardOut = "v18.16.1" });
142149
commandLineWrapper.MockedResults.Add(_expectedDockerCommand, new TryRunResult { ExitCode = 0, StandardOut = "windows" });

0 commit comments

Comments
 (0)