Skip to content

Commit 826ef0e

Browse files
committed
Merge branch 'ab/svn-tests-set-e-fix'
Test clean-up. * ab/svn-tests-set-e-fix: svn tests: refactor away a "set -e" in test body svn tests: remove legacy re-setup from init-clone test
2 parents 0377ac9 + 4f4d201 commit 826ef0e

File tree

2 files changed

+15
-18
lines changed

2 files changed

+15
-18
lines changed

t/t9117-git-svn-init-clone.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ test_description='git svn init/clone tests'
77

88
. ./lib-git-svn.sh
99

10-
# setup, run inside tmp so we don't have any conflicts with $svnrepo
11-
set -e
12-
rm -r .git
13-
mkdir tmp
14-
cd tmp
15-
1610
test_expect_success 'setup svnrepo' '
1711
mkdir project project/trunk project/branches project/tags &&
1812
echo foo > project/trunk/foo &&

t/t9148-git-svn-propset.sh

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,22 @@ test_description='git svn propset tests'
77

88
. ./lib-git-svn.sh
99

10-
foo_subdir2="subdir/subdir2/foo_subdir2"
10+
test_expect_success 'setup propset via import' '
11+
test_when_finished "rm -rf import" &&
1112
12-
set -e
13-
mkdir import &&
14-
(set -e ; cd import
15-
mkdir subdir
16-
mkdir subdir/subdir2
17-
touch foo # for 'add props top level'
18-
touch subdir/foo_subdir # for 'add props relative'
19-
touch "$foo_subdir2" # for 'add props subdir'
20-
svn_cmd import -m 'import for git svn' . "$svnrepo" >/dev/null
21-
)
22-
rm -rf import
13+
foo_subdir2="subdir/subdir2/foo_subdir2" &&
14+
mkdir -p import/subdir/subdir2 &&
15+
(
16+
cd import &&
17+
# for "add props top level"
18+
>foo &&
19+
# for "add props relative"
20+
>subdir/foo_subdir &&
21+
# for "add props subdir"
22+
>"$foo_subdir2" &&
23+
svn_cmd import -m "import for git svn" . "$svnrepo"
24+
)
25+
'
2326

2427
test_expect_success 'initialize git svn' '
2528
git svn init "$svnrepo"

0 commit comments

Comments
 (0)