X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Ftests%2Fdrs-push-rejects;h=4b7de3408c9496137f609dfdf0ec1a6743a594d3;hb=8e4a69d54bb811aabe6eb2b133d142771c30f997;hp=f87cbdcbefc5f873b32c74b3b36e830534c30dae;hpb=ae0be57dee74ad701f67dfa484fe983808311762;p=dgit.git diff --git a/tests/tests/drs-push-rejects b/tests/tests/drs-push-rejects index f87cbdcb..4b7de340 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 + + t-expect-fsck-fail $badtag done done @@ -139,6 +141,13 @@ mktag mustfail 'tag name in tag is wrong' \ refs/tags/$tagpfx/wombat:refs/tags/$tagpfx/$version $push_spec1 +t-make-badcommit +git checkout -b broken $badcommit +prep unstable sid +mktag +mustfail "corrupted object $badcommit" $push_spec + +git checkout dgit/sid prep unstable sid mktag mustsucceed $push_spec # succeeds @@ -191,4 +200,4 @@ mustfail "not in permissions list although in keyring" $push_spec prep_dm_mangle '' mustsucceed $push_spec # succeeds -echo ok. +t-ok