t9113-*.sh: provide user feedback when test skipped
Currently this test simply exits without providing any feedback at all. Tell user if the test is being skipped and provide a hint as to how the test may be enabled. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ramsay Jones committed
Jul 9, 2008 at 00:18 UTC
c6955fec546f339b258a1cba0e23618010e5c260
1 file changed
+7
-1
t/t9113-git-svn-dcommit-new-file.sh
+7
-1
@@ -7,12 +7,18 @@
7
# I don't like the idea of taking a port and possibly leaving a
8
# daemon running on a users system if the test fails.
9
# Not all git users will need to interact with SVN.
10
-test -z "$SVNSERVE_PORT" && exit 0
10
11
test_description='git-svn dcommit new files over svn:// test'
12
13
. ./lib-git-svn.sh
14
15
+if test -z "$SVNSERVE_PORT"
16
+then
17
+ say 'skipping svnserve test. (set $SVNSERVE_PORT to enable)'
18
+ test_done
19
+ exit
20
+fi
21
+
22
start_svnserve () {
23
svnserve --listen-port $SVNSERVE_PORT \
24
--root "$rawsvnrepo" \