mirror of
https://github.com/containers/skopeo.git
synced 2025-08-18 14:37:16 +00:00
Merge pull request #673 from mtrmac/systemtest-openpgp
Skip systemtest/050-signing.bats if skopeo can't create signatures
This commit is contained in:
commit
1b8686d044
@ -82,6 +82,15 @@ END_POLICY_JSON
|
|||||||
}
|
}
|
||||||
|
|
||||||
@test "signing" {
|
@test "signing" {
|
||||||
|
run_skopeo '?' standalone-sign /dev/null busybox alice@test.redhat.com -o /dev/null
|
||||||
|
if [[ "$output" =~ 'signing is not supported' ]]; then
|
||||||
|
skip "skopeo built without support for creating signatures"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
if [ "$status" -ne 0 ]; then
|
||||||
|
die "exit code is $status; expected $expected_rc"
|
||||||
|
fi
|
||||||
|
|
||||||
# Cache local copy
|
# Cache local copy
|
||||||
run_skopeo copy docker://busybox:latest dir:$TESTDIR/busybox
|
run_skopeo copy docker://busybox:latest dir:$TESTDIR/busybox
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user