aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-03-12 10:56:04 -0700
committerJunio C Hamano <gitster@pobox.com>2026-03-12 10:56:04 -0700
commit0724f727ee24495c2d27738297d3d68c8393fa28 (patch)
tree5f8aeeea9748db2a7fb0656f517241df711052aa /t
parent9a591a99d000059f10e9095bb2adee2d28c4318d (diff)
parent63c00a677b2b44e0691919b36a417cee648d890d (diff)
downloadgit-0724f727ee24495c2d27738297d3d68c8393fa28.tar.xz
Merge branch 'ss/t9123-setup-inside-test-expect-success'
Test clean-up. * ss/t9123-setup-inside-test-expect-success: t9123: use test_when_finished for cleanup
Diffstat (limited to 't')
-rwxr-xr-xt/t9123-git-svn-rebuild-with-rewriteroot.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/t/t9123-git-svn-rebuild-with-rewriteroot.sh b/t/t9123-git-svn-rebuild-with-rewriteroot.sh
index ead404589e..8fa5940abe 100755
--- a/t/t9123-git-svn-rebuild-with-rewriteroot.sh
+++ b/t/t9123-git-svn-rebuild-with-rewriteroot.sh
@@ -7,12 +7,15 @@ test_description='git svn respects rewriteRoot during rebuild'
. ./lib-git-svn.sh
-mkdir import
-(cd import
- touch foo
- svn_cmd import -m 'import for git svn' . "$svnrepo" >/dev/null
-)
-rm -rf import
+test_expect_success 'setup svn repository' '
+ test_when_finished "rm -rf import" &&
+ mkdir import &&
+ (
+ cd import &&
+ touch foo &&
+ svn_cmd import -m "import for git svn" . "$svnrepo" >/dev/null
+ )
+ '
test_expect_success 'init, fetch and checkout repository' '
git svn init --rewrite-root=http://invalid.invalid/ "$svnrepo" &&