diff --git a/test/AWS.Deploy.Orchestration.UnitTests/SystemCapabilityEvaluatorTests.cs b/test/AWS.Deploy.Orchestration.UnitTests/SystemCapabilityEvaluatorTests.cs index 6f1fc92f..41d9b3a0 100644 --- a/test/AWS.Deploy.Orchestration.UnitTests/SystemCapabilityEvaluatorTests.cs +++ b/test/AWS.Deploy.Orchestration.UnitTests/SystemCapabilityEvaluatorTests.cs @@ -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" });