fix: prevent deadlock when linux32 fails (#2880)
This was the case when running `nox -s tests -- --run-podman -v -s 'unit_test/oci_container_test.py::test_multiarch_image[podman-OCIPlatform.i386]'` on macOS arm64.
This commit is contained in:
@@ -555,9 +555,12 @@ def test_local_image(
|
||||
platform,
|
||||
}:
|
||||
pytest.skip("Skipping test because docker on this platform does not support QEMU")
|
||||
if container_engine.name == "podman" and platform == OCIPlatform.ARMV7:
|
||||
# both GHA & local macOS arm64 podman desktop are failing
|
||||
pytest.xfail("podman fails with armv7l images")
|
||||
if container_engine.name == "podman":
|
||||
if platform == OCIPlatform.ARMV7:
|
||||
# both GHA & local macOS arm64 podman desktop are failing
|
||||
pytest.xfail("podman fails with armv7l images")
|
||||
elif platform == OCIPlatform.i386 and sys.platform.startswith("darwin"):
|
||||
pytest.xfail("podman fails with i386 images on macOS")
|
||||
|
||||
remote_image = "debian:trixie-slim"
|
||||
platform_name = platform.value.replace("/", "_")
|
||||
@@ -636,9 +639,13 @@ def test_multiarch_image(container_engine: OCIContainerEngineConfig, platform: O
|
||||
platform,
|
||||
}:
|
||||
pytest.skip("Skipping test because docker on this platform does not support QEMU")
|
||||
if container_engine.name == "podman" and platform == OCIPlatform.ARMV7:
|
||||
# both GHA & local macOS arm64 podman desktop are failing
|
||||
pytest.xfail("podman fails with armv7l images")
|
||||
if container_engine.name == "podman":
|
||||
if platform == OCIPlatform.ARMV7:
|
||||
# both GHA & local macOS arm64 podman desktop are failing
|
||||
pytest.xfail("podman fails with armv7l images")
|
||||
elif platform == OCIPlatform.i386 and sys.platform.startswith("darwin"):
|
||||
pytest.xfail("podman fails with i386 images on macOS")
|
||||
|
||||
with OCIContainer(
|
||||
engine=container_engine, image="debian:trixie-slim", oci_platform=platform
|
||||
) as container:
|
||||
|
||||
Reference in New Issue
Block a user