]> git.sur5r.net Git - bacula/bacula/commitdiff
Add debug output to weird-files-test when it fails
authorKern Sibbald <kern@sibbald.com>
Thu, 21 Jan 2010 10:25:44 +0000 (11:25 +0100)
committerKern Sibbald <kern@sibbald.com>
Thu, 21 Jan 2010 10:25:44 +0000 (11:25 +0100)
regress/tests/weird-files-test

index 1521d4eb4fae3e6bce1fc69bcaa9ee418ca53450..2292a3ac7d40fdc43596ee88f5c5dcb7ebdac4a2 100755 (executable)
@@ -74,6 +74,16 @@ check_two_logs
 if test "$debug" -eq 1; then
   diff -u ${cwd}/tmp/original ${cwd}/tmp/restored
   dstat=$?
+  if [ $dstat != 0 ] ; then
+     echo " "
+     echo "===== Original ======"
+     cat ${cwd}/tmp/original
+     echo "====="
+     echo " "
+     echo "===== Restored ======"
+     cat ${cwd}/tmp/restored
+     echo "====="
+  fi
 else
   diff -u ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 >/dev/null
   dstat=$?