Merge pull request #673 from mtrmac/systemtest-openpgp

Skip systemtest/050-signing.bats if skopeo can't create signatures
This commit is contained in:
Miloslav Trmač 2019-06-13 19:07:12 +02:00 committed by GitHub
commit 1b8686d044
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,6 +82,15 @@ END_POLICY_JSON
}
@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
run_skopeo copy docker://busybox:latest dir:$TESTDIR/busybox