# Where to get the source to be tested
-#BACULA_SOURCE="${HOME}/bacula/branch-2.0"
+#BACULA_SOURCE="${HOME}/bacula/bacula/branch-2.0"
BACULA_SOURCE="${HOME}/bacula/k"
# Where to send email !!!!! Change me !!!!!!!
AUTOCHANGER_PATH="/usr/sbin/mtx"
# Set your database here
-WHICHDB="--with-sqlite=${SQLITE_DIR}"
-#WHICHDB="--with-mysql"
+#WHICHDB="--with-sqlite=${SQLITE_DIR}"
+WHICHDB="--with-mysql"
#WHICHDB="--with-postgresql"
# Set this to "--with-tcp-wrappers" or "--without-tcp-wrappers"
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