fixes dav test script

Sun, 24 Jun 2018 09:23:00 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 24 Jun 2018 09:23:00 +0200
changeset 424
f851ba530957
parent 423
84e6c407b431
child 425
ae4d89c3477c

fixes dav test script

test/bin-test/test-dav.sh file | annotate | diff | comparison | revisions
--- a/test/bin-test/test-dav.sh	Sun Jun 17 09:50:05 2018 +0200
+++ b/test/bin-test/test-dav.sh	Sun Jun 24 09:23:00 2018 +0200
@@ -45,7 +45,7 @@
 
 # check for test repository
 TEST_REPO=`$DAV_BIN list-repos | grep dav-test-repo`
-if [ $TEST_REPO != "dav-test-repo" ];
+if [ -z $TEST_REPO ];
 then
 	echo "A dav repository with the name 'dav-test-repo' is needed."
 	exit 1
@@ -62,7 +62,7 @@
 }
 
 # clean test repo
-$DAV_BIN rm dav-test-repo/tests/ 2> /dev/null
+$DAV_BIN rm -N dav-test-repo/tests/ 2> /dev/null
 
 #
 # ok, begin the tests

mercurial