chiark / gitweb /
dgit: clone-dgit-repos-server: Set $access_forpush
[dgit.git] / tests / tests / drs-push-rejects
index 79d02b225738514635d629da4d9c17f0e87ca530..4b7de3408c9496137f609dfdf0ec1a6743a594d3 100755 (executable)
@@ -85,7 +85,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 +141,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