mingw: fix mingw_open_append to work with named pipes
[gitweb.git] / t / lib-git-svn.sh
index 84366b262402c8eb38404e292b4a2fcd35e1ea5e..a8130f9119d629462efb6b52f91890c0352e4e85 100644 (file)
@@ -49,7 +49,7 @@ rawsvnrepo="$svnrepo"
 svnrepo="file://$svnrepo"
 
 poke() {
-       test-chmtime +1 "$1"
+       test-tool chmtime +1 "$1"
 }
 
 # We need this, because we should pass empty configuration directory to
@@ -110,14 +110,16 @@ EOF
 }
 
 require_svnserve () {
-       if test -z "$SVNSERVE_PORT"
+       test_tristate GIT_TEST_SVNSERVE
+       if ! test "$GIT_TEST_SVNSERVE" = true
        then
-               skip_all='skipping svnserve test. (set $SVNSERVE_PORT to enable)'
+               skip_all='skipping svnserve test. (set $GIT_TEST_SVNSERVE to enable)'
                test_done
        fi
 }
 
 start_svnserve () {
+       SVNSERVE_PORT=${SVNSERVE_PORT-${this_test#t}}
        svnserve --listen-port $SVNSERVE_PORT \
                 --root "$rawsvnrepo" \
                 --listen-once \