]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak weird-files debug output
authorKern Sibbald <kern@sibbald.com>
Sun, 15 Nov 2009 15:59:03 +0000 (16:59 +0100)
committerKern Sibbald <kern@sibbald.com>
Sun, 15 Nov 2009 15:59:03 +0000 (16:59 +0100)
regress/tests/weird-files-test

index bd211f0b1de277fb03cc9ddbfab20ce51e67be24..1521d4eb4fae3e6bce1fc69bcaa9ee418ca53450 100755 (executable)
@@ -71,7 +71,11 @@ ${cwd}/bin/testls weird-files | sort >${cwd}/tmp/restored
 cd ${cwd}
 
 check_two_logs
-#diff -u ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 >/dev/null
-diff -u ${cwd}/tmp/original ${cwd}/tmp/restored                
-dstat=$?
+if test "$debug" -eq 1; then
+  diff -u ${cwd}/tmp/original ${cwd}/tmp/restored
+  dstat=$?
+else
+  diff -u ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 >/dev/null
+  dstat=$?
+fi
 end_test