Skip to content

Commit

Permalink
Merge pull request #605 from SUSE/old_podman_workaround
Browse files Browse the repository at this point in the history
Skip manifest test on ancient podman versions
  • Loading branch information
grisu48 authored Oct 2, 2024
2 parents ff26543 + d7971c1 commit 50a0467
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
from bci_tester.data import SPACK_CONTAINERS
from bci_tester.data import TOMCAT_CONTAINERS
from bci_tester.data import ImageType
from bci_tester.runtime_choice import PODMAN_SELECTED

#: The official vendor name
VENDOR = "openSUSE Project" if OS_VERSION == "tumbleweed" else "SUSE LLC"
Expand Down Expand Up @@ -674,7 +675,9 @@ def test_oci_base_refs(
), "Base image reference is not the expected version"
assert base_digest.startswith("sha256:")

LOCALHOST.run_expect(
[0],
if PODMAN_SELECTED and container_runtime.version.major < 3:
pytest.skip("Podman version too old for checking manifest")

LOCALHOST.check_output(
f"{container_runtime.runner_binary} manifest inspect {base_repository}@{base_digest}",
)

0 comments on commit 50a0467

Please sign in to comment.