diff options
author | Jonathan Lebon <jonathan@jlebon.com> | 2021-08-03 16:33:28 -0400 |
---|---|---|
committer | Jonathan Lebon <jonathan@jlebon.com> | 2021-08-03 16:49:49 -0400 |
commit | 75b17937cf69fbb215d3b18b6e6afba4dd9df82a (patch) | |
tree | bb14142754b64ea5dd07e411ee63ecddc07d9d30 /tests | |
parent | a3ce5df22e2835050145841441c81a423fc8d0e4 (diff) | |
download | ostree-75b17937cf69fbb215d3b18b6e6afba4dd9df82a.tar.gz |
lib/sign-dummy: Handle incorrect signatures correctly
We need to check all signatures for one which passes, not just fail on
the first one.
Reported-by: Seth Arnold <seth.arnold@canonical.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test-delta-sign.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-delta-sign.sh b/tests/test-delta-sign.sh index 86f12f96..ed471db9 100755 --- a/tests/test-delta-sign.sh +++ b/tests/test-delta-sign.sh @@ -169,6 +169,6 @@ ostree_repo_init repo2 --mode=bare-user ${CMD_PREFIX} ostree --repo=repo2 pull-local repo ${origrev} ${CMD_PREFIX} ostree --repo=repo2 ls ${origrev} >/dev/null ${CMD_PREFIX} ostree --repo=repo2 static-delta apply-offline --sign-type=dummy repo/deltas/${deltaprefix}/${deltadir} badsign 2> apply-offline-bad-key.txt && exit 1 -assert_file_has_content apply-offline-bad-key.txt "signature: dummy: incorrect signature" +assert_file_has_content apply-offline-bad-key.txt "signature: dummy: incorrect signatures found: 1" echo 'ok apply offline failed with dummy and bad key' |