chiark / gitweb /
git-debrebase: merge: test suite: Drop check of no wreckage save
[dgit.git] / tests / tests / drs-push-rejects
index f87cbdcbefc5f873b32c74b3b36e830534c30dae..afaed4cf248cb0c76f4f2bd6166379159655d089 100755 (executable)
@@ -10,6 +10,9 @@ t-worktree drs
 
 cd $p
 
+git remote set-url origin \
+ "ext::$troot/drs-git-ext %S /pari-extra.git"
+
 mustfail () {
        local mpat="$1"; shift
        t-expect-push-fail "$mpat" \
@@ -84,6 +87,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 +144,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 +203,4 @@ mustfail "not in permissions list although in keyring" $push_spec
 prep_dm_mangle ''
 mustsucceed $push_spec # succeeds
 
-echo ok.
+t-ok