diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-01-05 15:30:13 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-01-05 15:30:13 +0000 |
commit | e3d689abb4446aa168d150d2832fe9fd76933dcc (patch) | |
tree | ee7861f5155a677d542ba8379e84f039d61d3a91 | |
parent | 6b959bf443c37b26f058aed813885c469c660828 (diff) |
test suite: Make expect_fsck_fail contain objids
This will make it possible to be stricter.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rw-r--r-- | tests/lib | 2 | ||||
-rwxr-xr-x | tests/tests/drs-push-rejects | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -350,7 +350,7 @@ t-git-dir-check () { } t-git-fsck () { - git fsck --no-dangling --strict || ${expect_fsck_fail-false} + git fsck --no-dangling --strict || ${expect_fsck_fail:+true} false } t-fscks () { diff --git a/tests/tests/drs-push-rejects b/tests/tests/drs-push-rejects index dee14b8..79d02b2 100755 --- a/tests/tests/drs-push-rejects +++ b/tests/tests/drs-push-rejects @@ -84,6 +84,8 @@ for h in object type tag; do git update-ref refs/tags/$tag_name $badtag mustfail 'multiple headers '$h' in signed tag object' $push_spec + + expect_fsck_fail+=" $badtag" done done @@ -145,6 +147,7 @@ badcommit=$( perl -pe 's/^committer.*\n//' | \ git hash-object -w -t commit --stdin ) +expect_fsck_fail+=" $badcommit" git checkout -b broken $badcommit prep unstable sid mktag @@ -203,7 +206,4 @@ mustfail "not in permissions list although in keyring" $push_spec prep_dm_mangle '' mustsucceed $push_spec # succeeds -# we generate some junk, so we must tolerate git-fsck complaining -expect_fsck_fail=true - t-ok |