mktag tests: test fast-export
Pass the bad tags we've created in the mktag tests through fast-export, it will die on the bad object or ref, let's make sure that happens. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
b48015b340
commit
2f61b3eef3
|
@ -91,6 +91,14 @@ check_verify_failure () {
|
|||
|
||||
test_must_fail git -C bad-tag for-each-ref --format="%(*objectname)"
|
||||
'
|
||||
|
||||
test_expect_success "fast-export & fast-import: $subject" '
|
||||
# Make sure the earlier test created it for us
|
||||
git rev-parse "$bad_tag" &&
|
||||
|
||||
test_must_fail git -C bad-tag fast-export --all &&
|
||||
test_must_fail git -C bad-tag fast-export "$bad_tag"
|
||||
'
|
||||
}
|
||||
|
||||
test_expect_mktag_success() {
|
||||
|
|
Loading…
Reference in New Issue