test/bin-test/test-dav-sync-metadata1.sh

changeset 671
5256d7eb69e7
parent 667
6cdcd3e4e368
child 736
40be8db6fe45
--- a/test/bin-test/test-dav-sync-metadata1.sh	Wed Oct 23 20:26:53 2019 +0200
+++ b/test/bin-test/test-dav-sync-metadata1.sh	Fri Oct 25 19:39:33 2019 +0200
@@ -278,7 +278,7 @@
 check_tmpout "0 conflicts" "test 5: wrong conflict counter (push)"
 check_tmpout "0 errors" "test 5: wrong error counter (push)"
 LN=`cat tmp-sync/out.txt | wc -l`
-if [ "$LN" != "1" ]; then
+if [ $LN -ne 1 ]; then
 	echo "test 5: wrong output (push)"
 	exit 2
 fi
@@ -288,7 +288,7 @@
 check_tmpout "0 conflicts" "test 5: wrong conflict counter (pull)"
 check_tmpout "0 errors" "test 5: wrong error counter (pull)"
 LN=`cat tmp-sync/out.txt | wc -l`
-if [ "$LN" != "1" ]; then
+if [ $LN -ne 1 ]; then
 	echo "test 5: wrong output (pull)"
 	exit 2
 fi
@@ -340,7 +340,7 @@
 check_tmpout "0 conflicts" "test 7: wrong conflict counter (push)"
 check_tmpout "0 errors" "test 7: wrong error counter (push)"
 LN=`cat tmp-sync/out.txt | wc -l`
-if [ "$LN" != "1" ]; then
+if [ $LN -ne 1 ]; then
 	echo "test 7: wrong output (push)"
 	exit 2
 fi
@@ -350,7 +350,7 @@
 check_tmpout "0 conflicts" "test 7: wrong conflict counter (pull)"
 check_tmpout "0 errors" "test 7: wrong error counter (pull)"
 LN=`cat tmp-sync/out.txt | wc -l`
-if [ "$LN" != "1" ]; then
+if [ $LN -ne 1 ]; then
 	echo "test 7: wrong output (pull)"
 	exit 2
 fi
@@ -396,7 +396,7 @@
 check_tmpout "0 conflicts" "test 9: wrong conflict counter (push)"
 check_tmpout "0 errors" "test 9: wrong error counter (push)"
 LN=`cat tmp-sync/out.txt | wc -l`
-if [ "$LN" != "1" ]; then
+if [ $LN -ne 1 ]; then
 	echo "test 9: wrong output (push)"
 	exit 2
 fi
@@ -406,7 +406,7 @@
 check_tmpout "0 conflicts" "test 9: wrong conflict counter (pull)"
 check_tmpout "0 errors" "test 9: wrong error counter (pull)"
 LN=`cat tmp-sync/out.txt | wc -l`
-if [ "$LN" != "1" ]; then
+if [ $LN -ne 1 ]; then
 	echo "test 9: wrong output (pull)"
 	exit 2
 fi
@@ -459,7 +459,7 @@
 check_tmpout "0 conflicts" "test 11: wrong conflict counter (push)"
 check_tmpout "0 errors" "test 11: wrong error counter (push)"
 LN=`cat tmp-sync/out.txt | wc -l`
-if [ "$LN" != "1" ]; then
+if [ $LN -ne 1 ]; then
 	echo "test 11: wrong output (push)"
 	exit 2
 fi
@@ -469,7 +469,7 @@
 check_tmpout "0 conflicts" "test 11: wrong conflict counter (pull)"
 check_tmpout "0 errors" "test 11: wrong error counter (pull)"
 LN=`cat tmp-sync/out.txt | wc -l`
-if [ "$LN" != "1" ]; then
+if [ $LN -ne 1 ]; then
 	echo "test 11: wrong output (pull)"
 	exit 2
 fi
@@ -492,7 +492,7 @@
 check_tmpout "0 conflicts" "test 12: wrong conflict counter (pull)"
 check_tmpout "0 errors" "test 12: wrong error counter (pull)"
 LN=`cat tmp-sync/out.txt | wc -l`
-if [ "$LN" != "1" ]; then
+if [ $LN -ne 1 ]; then
 	echo "test 12: wrong output (pull)"
 	exit 2
 fi
@@ -530,7 +530,7 @@
 check_tmpout "update: /file4" "test 14: file 4 not pulled"
 
 LN=`$DAV_SYNC_BIN list-tags -s test4b tmp-sync/test4b/file4 | wc -l`
-if [ "$LN" != "0" ]; then
+if [ $LN -ne 0 ]; then
 	echo "test 14: wrong tag count"
 	exit 2
 fi

mercurial