Skip to content

Commit deeb2fc

Browse files
committed
Merge branch 'tz/lib-git-svn-svnserve-tests'
* tz/lib-git-svn-svnserve-tests: t/lib-git-svn.sh: improve svnserve tests with parallel make test t/lib-git-svn: cleanup inconsistent tab/space usage
2 parents 63dd544 + bf9d7df commit deeb2fc

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

t/lib-git-svn.sh

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ SVN_TREE=$GIT_SVN_DIR/svn-tree
1717
svn >/dev/null 2>&1
1818
if test $? -ne 1
1919
then
20-
skip_all='skipping git svn tests, svn not found'
21-
test_done
20+
skip_all='skipping git svn tests, svn not found'
21+
test_done
2222
fi
2323

2424
svnrepo=$PWD/svnrepo
@@ -110,18 +110,20 @@ EOF
110110
}
111111

112112
require_svnserve () {
113-
if test -z "$SVNSERVE_PORT"
114-
then
115-
skip_all='skipping svnserve test. (set $SVNSERVE_PORT to enable)'
116-
test_done
117-
fi
113+
test_tristate GIT_TEST_SVNSERVE
114+
if ! test "$GIT_TEST_SVNSERVE" = true
115+
then
116+
skip_all='skipping svnserve test. (set $GIT_TEST_SVNSERVE to enable)'
117+
test_done
118+
fi
118119
}
119120

120121
start_svnserve () {
121-
svnserve --listen-port $SVNSERVE_PORT \
122-
--root "$rawsvnrepo" \
123-
--listen-once \
124-
--listen-host 127.0.0.1 &
122+
SVNSERVE_PORT=${SVNSERVE_PORT-${this_test#t}}
123+
svnserve --listen-port $SVNSERVE_PORT \
124+
--root "$rawsvnrepo" \
125+
--listen-once \
126+
--listen-host 127.0.0.1 &
125127
}
126128

127129
prepare_a_utf8_locale () {

0 commit comments

Comments
 (0)