]> git.ipfire.org Git - thirdparty/git.git/commit
t9123: use test_when_finished for cleanup
authorSiddharth Shrimali <r.siddharth.shrimali@gmail.com>
Thu, 5 Mar 2026 12:54:08 +0000 (18:24 +0530)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Mar 2026 19:36:43 +0000 (11:36 -0800)
commit63c00a677b2b44e0691919b36a417cee648d890d
treed0a3c7917cfbbf3c89ad4806b2b6083710a929ab
parent67ad42147a7acc2af6074753ebd03d904476118f
t9123: use test_when_finished for cleanup

Move the setup logic into a 'test_expect_success' block.
This ensures that the code is properly tracked by the test harness.

Additionally, we use the 'test_when_finished' helper at the start of
the block to ensure that the 'import' directory is removed even if the
test fails.
This is cleaner than the previous manual 'rm -rf import' approach.

Signed-off-by: Siddharth Shrimali <r.siddharth.shrimali@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9123-git-svn-rebuild-with-rewriteroot.sh