]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/weird-files-test
regress: add function to create many dirs
[bacula/bacula] / regress / tests / weird-files-test
index c7d4b202e091723969e708fc25d00b1f780b7748..2292a3ac7d40fdc43596ee88f5c5dcb7ebdac4a2 100755 (executable)
@@ -72,8 +72,18 @@ cd ${cwd}
 
 check_two_logs
 if test "$debug" -eq 1; then
-  diff -u ${cwd}/tmp/original ${cwd}/tmp/restored                
+  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=$?