Skip to content

Commit 51130b6

Browse files
committed
address alex's comment
1 parent 9d5b293 commit 51130b6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/Amazon.Lambda.Tools.Test/DeployTest.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,15 @@ public async Task RunDeploymentNativeAot(bool multipleProjects, bool customMount
190190
/// This test deploys a .NET8 Native AOT Web App that does not explicitly set the OutputType to Exe.
191191
/// In .NET8, the web app inherits the OutputType from the SDK.
192192
/// </summary>
193-
[Fact(Skip = "This test requires Docker to be available. We are using a Windows container in the release pipeline which does not support Docker.")]
193+
[Fact]
194194
public async Task NativeAotNet8WebApp()
195195
{
196+
if (string.Equals(System.Environment.GetEnvironmentVariable("DOTNET_RUNNING_IN_CONTAINER"), "true", StringComparison.OrdinalIgnoreCase))
197+
{
198+
_testOutputHelper.WriteLine("Skipping container build test because test is already running inside a container");
199+
return;
200+
}
201+
196202
var logger = new TestToolLogger();
197203
var assembly = GetType().GetTypeInfo().Assembly;
198204

0 commit comments

Comments
 (0)