Skip to content

Commit c6955fe

Browse files
Ramsay Jonesgitster
authored andcommitted
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>
1 parent 948e747 commit c6955fe

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

t/t9113-git-svn-dcommit-new-file.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,18 @@
77
# I don't like the idea of taking a port and possibly leaving a
88
# daemon running on a users system if the test fails.
99
# Not all git users will need to interact with SVN.
10-
test -z "$SVNSERVE_PORT" && exit 0
1110

1211
test_description='git-svn dcommit new files over svn:// test'
1312

1413
. ./lib-git-svn.sh
1514

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+
1622
start_svnserve () {
1723
svnserve --listen-port $SVNSERVE_PORT \
1824
--root "$rawsvnrepo" \

0 commit comments

Comments
 (0)