Skip to content

Commit

Permalink
Merge pull request #673 from mtrmac/systemtest-openpgp
Browse files Browse the repository at this point in the history
Skip systemtest/050-signing.bats if skopeo can't create signatures
  • Loading branch information
mtrmac authored Jun 13, 2019
2 parents 524f6c0 + a4de142 commit 1b8686d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions systemtest/050-signing.bats
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ END_POLICY_JSON
}

@test "signing" {
run_skopeo '?' standalone-sign /dev/null busybox [email protected] -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

Expand Down

0 comments on commit 1b8686d

Please sign in to comment.