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>

Ævar Arnfjörð Bjarmason committed Jun 17, 2021 at 12:42 UTC 2f61b3eef386e6e6cb81ab61dc310dd7f03e4b13
1 file changed +8
t/t3800-mktag.sh
+8
@@ -91,6 +91,14 @@ check_verify_failure () {
91
92 test_must_fail git -C bad-tag for-each-ref --format="%(*objectname)"
93 '
94 +
95 + test_expect_success "fast-export & fast-import: $subject" '
96 + # Make sure the earlier test created it for us
97 + git rev-parse "$bad_tag" &&
98 +
99 + test_must_fail git -C bad-tag fast-export --all &&
100 + test_must_fail git -C bad-tag fast-export "$bad_tag"
101 + '
102 }
103
104 test_expect_mktag_success() {