]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/incremental-2disk
ebl Add new tests
[bacula/bacula] / regress / tests / incremental-2disk
index a2227f79bb38c8a2405b73236da3d9a034edc816..1064e7e19867982404de92bfcf50db860d1af594 100755 (executable)
@@ -8,9 +8,7 @@
 TestName="incremental-2disk"
 JobName=Inc2disk
 . scripts/functions
-set_debug 0
 
-. config.out
 
 stop_bacula
 cd bin
@@ -89,4 +87,18 @@ rm -f tmp/build/*.c
 
 check_two_logs
 check_restore_tmp_build_diff
+
+#
+# This script seems to more or less randomly fail, so we
+#  add extra code here to produce a "dump" in the event of
+#  an error.
+#
+if [ $dstat != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
+   cat tmp/log1.out
+   echo "  "
+   cat tmp/log2.out
+   echo "  "
+   diff -r tmp/build tmp/bacula-restores${cwd}/tmp/build
+fi
+
 end_test