chiark / gitweb /
badcommit-fixup: Merge from a filtered view of my personal playground
[dgit.git] / tests / tests / drs-push-rejects
index 7b7c5f32a2a3c8e093e5f0b0669055c01e6777e1..8c4ad83cd75acee8b65d289d287404e8f4f05768 100755 (executable)
@@ -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
+
+    t-expect-fsck-fail $badtag
   done
 done
 
@@ -145,6 +147,7 @@ badcommit=$(
        perl -pe 's/^committer.*\n//' | \
        git hash-object -w -t commit --stdin
 )
+t-expect-fsck-fail $badcommit
 git checkout -b broken $badcommit
 prep unstable sid
 mktag
@@ -203,4 +206,4 @@ mustfail "not in permissions list although in keyring" $push_spec
 prep_dm_mangle ''
 mustsucceed $push_spec # succeeds
 
-echo ok.
+t-ok