Skip to content

Commit ec83c23

Browse files
committed
fix: skip container image integration test on Windows CI
Windows CI runners use Windows containers and cannot pull Linux images. This matches the pattern used by existing Lambda image build tests.
1 parent 56c763e commit ec83c23

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/integration/buildcmd/test_build_cmd_container_image.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
"""Integration test for ECS/AgentCore container image builds"""
22

3-
import os
43
import shutil
54
import tempfile
65
from pathlib import Path
7-
from unittest import TestCase
6+
from unittest import TestCase, skipIf
87

98
import yaml
109

1110
from samcli.commands.build.build_context import BuildContext
11+
from tests.testing_utils import CI_OVERRIDE, IS_WINDOWS, RUNNING_ON_CI
1212

1313

14+
@skipIf(
15+
(IS_WINDOWS and RUNNING_ON_CI) and not CI_OVERRIDE,
16+
"Skip container image build tests on Windows CI (no Linux Docker support)",
17+
)
1418
class TestContainerImageBuild(TestCase):
1519
"""Test that samdev build correctly handles ECS and AgentCore container resources."""
1620

0 commit comments

Comments
 (0)