From: Karthik Nayak Date: Tue, 10 Nov 2026 11:49:59 GMT Subject: [PATCH 14/20] t9300: make the series Y tests self-contained Message-ID: <20261110-kn-fast-import-tests-1-v1-14-dbd9ee502aae@gmail.com> In-Reply-To: <20261110-kn-fast-import-tests-1-v1-0-dbd9ee502aae@gmail.com> Similar to the previous commits, modify the 'series Y' tests to make them independent of state from previous tests. The 'Y: setup' test only fills the OID cache for 'Y: rewrite submodules', so merge it into that test. Also clean up the repositories created by the tests. Signed-off-by: Karthik Nayak --- t/t9300-fast-import.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh index 82348c65cc..04c3bfe0c1 100755 --- a/t/t9300-fast-import.sh +++ b/t/t9300-fast-import.sh @@ -4498,14 +4498,12 @@ cat >Y-marks <<\Y_INPUT_END :4 ff729f5e62f72c0c3978207d9a80e5f3a65f14d7 Y_INPUT_END -test_expect_success 'Y: setup' ' - test_oid_cache <<-EOF +test_expect_success 'Y: rewrite submodules' ' + test_when_finished "rm -rf main1" && + test_oid_cache <<-EOF && Ymain sha1:9afed2f9161ddf416c0a1863b8b0725b00070504 Ymain sha256:c0a1010da1df187b2e287654793df01b464bd6f8e3f17fc1481a7dadf84caee3 EOF -' - -test_expect_success 'Y: rewrite submodules' ' git init main1 && ( cd main1 && @@ -4525,6 +4523,7 @@ test_expect_success 'Y: reference pending tag or commit' ' pending_tag sha256:85edc5eac315bc680677b2fc71622bd77476f057eb8dc8ed6a497803a24f1f46 EOF + test_when_finished "rm -rf reference-pending" && git init reference-pending && ( cd reference-pending && -- 2.56.GIT