chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test suite: Break out t-make-badcommit
[dgit.git]
/
tests
/
tests
/
drs-push-rejects
diff --git
a/tests/tests/drs-push-rejects
b/tests/tests/drs-push-rejects
index dee14b86fe68f14cea98137ef22a03991471b046..4b7de3408c9496137f609dfdf0ec1a6743a594d3 100755
(executable)
--- 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
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
done
done
@@
-139,12
+141,7
@@
mktag
mustfail 'tag name in tag is wrong' \
refs/tags/$tagpfx/wombat:refs/tags/$tagpfx/$version $push_spec1
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
-)
+t-make-badcommit
git checkout -b broken $badcommit
prep unstable sid
mktag
git checkout -b broken $badcommit
prep unstable sid
mktag
@@
-203,7
+200,4
@@
mustfail "not in permissions list although in keyring" $push_spec
prep_dm_mangle ''
mustsucceed $push_spec # succeeds
prep_dm_mangle ''
mustsucceed $push_spec # succeeds
-# we generate some junk, so we must tolerate git-fsck complaining
-expect_fsck_fail=true
-
t-ok
t-ok