From 2f61b3eef386e6e6cb81ab61dc310dd7f03e4b13 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Thu, 17 Jun 2021 12:42:02 +0200 Subject: [PATCH] mktag tests: test fast-export MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Junio C Hamano --- t/t3800-mktag.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/t/t3800-mktag.sh b/t/t3800-mktag.sh index bb71303399..0544d58a6e 100755 --- a/t/t3800-mktag.sh +++ b/t/t3800-mktag.sh @@ -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() { -- 2.39.5