mirror of
https://github.com/containers/skopeo.git
synced 2025-06-25 06:12:18 +00:00
Skip systemtest/050-signing.bats if skopeo can't create signatures
This does not happen in this repo's tests, but containers/image's (make test-skopeo) fails in the containers_image_openpgp configuration with > not ok 10 signing > ... > # time="2019-06-11T20:59:32Z" level=fatal msg="Signing not supported: signing is not supported in github.com/containers/image built with the containers_image_openpgp build tag" To reproduce/test this: > make test-system BUILDTAGS='ostree containers_image_openpgp' Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
parent
524f6c0682
commit
a4de1428f9
@ -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