summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJonathan Lebon <jonathan@jlebon.com>2021-08-03 16:33:28 -0400
committerJonathan Lebon <jonathan@jlebon.com>2021-08-03 16:49:49 -0400
commit75b17937cf69fbb215d3b18b6e6afba4dd9df82a (patch)
treebb14142754b64ea5dd07e411ee63ecddc07d9d30 /tests
parenta3ce5df22e2835050145841441c81a423fc8d0e4 (diff)
downloadostree-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-xtests/test-delta-sign.sh2
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'