mirror of
https://github.com/containers/skopeo.git
synced 2025-04-27 11:01:18 +00:00
tests: skip sif test on RHEL
(or, more precisely, if fakeroot binary not in $PATH). Solves RHEL gating-test failure. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
parent
13cd098079
commit
de71408294
@ -125,6 +125,10 @@ function setup() {
|
||||
run podman --root $TESTDIR/podmanroot images
|
||||
expect_output --substring "mine"
|
||||
|
||||
# rootless cleanup needs to be done with unshare due to subuids
|
||||
if [[ "$(id -u)" != "0" ]]; then
|
||||
run podman unshare rm -rf $TESTDIR/podmanroot
|
||||
fi
|
||||
}
|
||||
|
||||
# shared blob directory
|
||||
@ -145,6 +149,8 @@ function setup() {
|
||||
}
|
||||
|
||||
@test "copy: sif image" {
|
||||
type -path fakeroot || skip "'fakeroot' tool not available"
|
||||
|
||||
local localimg=dir:$TESTDIR/dir
|
||||
|
||||
run_skopeo copy sif:${TEST_SOURCE_DIR}/testdata/busybox_latest.sif $localimg
|
||||
|
Loading…
Reference in New Issue
Block a user