mirror of
https://github.com/git/git.git
synced 2026-03-08 00:07:41 +01:00
Merge branch 'ss/t9123-setup-inside-test-expect-success' into jch
Test clean-up. * ss/t9123-setup-inside-test-expect-success: t9123: use test_when_finished for cleanup
This commit is contained in:
@@ -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" &&
|
||||
|
||||
Reference in New Issue
Block a user