diff --git a/test/system/012-manifest.bats b/test/system/012-manifest.bats index 6f99454a85..289abd0674 100644 --- a/test/system/012-manifest.bats +++ b/test/system/012-manifest.bats @@ -4,6 +4,15 @@ load helpers load helpers.network load helpers.registry +function teardown() { + # Enumerate every one of the manifest names used everywhere below + echo "[ teardown - ignore 'image not known' errors below ]" + run_podman '?' manifest rm test:1.0 \ + localhost:${PODMAN_LOGIN_REGISTRY_PORT}/test:1.0 + + basic_teardown +} + # Helper function for several of the tests which verifies compression. # # Usage: validate_instance_compression INDEX MANIFEST ARCH COMPRESSION @@ -90,17 +99,15 @@ function validate_instance_compression { } @test "manifest list --add-compression with zstd" { - if ! type -p skopeo; then - skip "skopeo not available" - fi skip_if_remote "running a local registry doesn't work with podman-remote" start_registry - tmpdir=$PODMAN_TMPDIR/build-test - mkdir -p $tmpdir - dockerfile=$tmpdir/Dockerfile + # Using TARGETARCH gives us distinct images for each arch + dockerfile=$PODMAN_TMPDIR/Dockerfile cat >$dockerfile <