mirror of
https://github.com/containers/skopeo.git
synced 2025-06-26 14:52:36 +00:00
Fix unnecessary use of podman in CI test
For whatever reasons, the podman configuration in CI results in the inspect test throwing the following error: ``` not ok 4 inspect: image manifest list w/ diff platform 125 configuration is unset - using hardcoded default graph root \"/var/lib/containers/storage\"" configuration is unset - using hardcoded default graph root \"/var/lib/containers/storage\"" StoreOptions ``` Fix this by not using `podman`. It's unnecessary, since all the test needs is the golang-flavor of the current system's architecture name. That can easily be obtained by asking the go tool directly. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
parent
e239f32ae0
commit
292962d34c
@ -95,10 +95,11 @@ END_EXPECT
|
|||||||
# is created by the make-noarch-manifest script in this directory.
|
# is created by the make-noarch-manifest script in this directory.
|
||||||
img=docker://quay.io/libpod/notmyarch:20210121
|
img=docker://quay.io/libpod/notmyarch:20210121
|
||||||
|
|
||||||
# Get our host arch (what we're running on). This assumes that skopeo
|
# Get our host golang arch (what we're running on, according to golang).
|
||||||
# arch matches podman; it also assumes running podman >= April 2020
|
# This assumes that skopeo arch matches host arch (which it always should).
|
||||||
# (prior to that, the format keys were lower-case).
|
# Buildah is used here because it depends less on the exact system config
|
||||||
arch=$(podman info --format '{{.Host.Arch}}')
|
# than podman - and all we're really after is the golang-flavored arch name.
|
||||||
|
arch=$(go env GOARCH)
|
||||||
|
|
||||||
# By default, 'inspect' tries to match our host os+arch. This should fail.
|
# By default, 'inspect' tries to match our host os+arch. This should fail.
|
||||||
run_skopeo 1 inspect $img
|
run_skopeo 1 inspect $img
|
||||||
|
Loading…
Reference in New Issue
Block a user