[PATCH v2 6/6] mktag tests: test fast-export
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Jun 17, 2021, 10:42 UTC
- Message-ID
- <patch-6.6-797c8d3a87-20210617T104011Z-avarab@gmail.com>
- In-Reply-To
- <cover-0.6-0000000000-20210617T104011Z-avarab@gmail.com>
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> --- 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.32.0.571.gdba276db2c