chiark / gitweb /
test suite: Drop all testing of old tag formats, and compatibility
[dgit.git] / tests / tests / drs-push-rejects
index 79d02b225738514635d629da4d9c17f0e87ca530..4c4a0569ebcb289aba732fb2e852d229379bd6a2 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" \
@@ -85,7 +88,7 @@ for h in object type tag; do
 
     mustfail 'multiple headers '$h' in signed tag object' $push_spec
 
-    expect_fsck_fail+=" $badtag"
+    t-expect-fsck-fail $badtag
   done
 done
 
@@ -141,13 +144,7 @@ mktag
 mustfail 'tag name in tag is wrong' \
        refs/tags/$tagpfx/wombat:refs/tags/$tagpfx/$version $push_spec1
 
-echo ====
-badcommit=$(
-       git cat-file commit HEAD | \
-       perl -pe 's/^committer.*\n//' | \
-       git hash-object -w -t commit --stdin
-)
-expect_fsck_fail+=" $badcommit"
+t-make-badcommit
 git checkout -b broken $badcommit
 prep unstable sid
 mktag
@@ -165,7 +162,6 @@ git commit --allow-empty -m 'Dummy update'
 mktag
 mustfail 'not replacing previously-pushed version' +$push_spec1 +$push_spec2
 
-t-newtag
 re-prep
 mktag
 mustfail 'not replacing previously-pushed version' +$push_spec1 +$push_spec2