]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/functions
Minor tweaks
[bacula/bacula] / regress / scripts / functions
index 2947de38f7dfae6bf0b8a04d9fbc403ca66e3bd0..715f6fb4cb0dd5deed3d08ac8d8543bb77325457 100644 (file)
@@ -203,6 +203,10 @@ bscan_libdbi()
 stop_bacula()
 {
    bin/bacula stop 2>&1 >/dev/null
+   zstat=0
+   bstat=0
+   rstat=0
+   dstat=0
 }
 
 check_for_zombie_jobs()
@@ -248,6 +252,11 @@ check_two_logs()
    if test $? -eq 0; then
       rstat=4
    fi
+   grep "Encoding error for database" tmp/log1.out > /dev/null
+   if test $? -eq 0; then
+      print_debug "Found database encoding error"
+      bstat=2
+   fi
 }
 
 check_restore_diff()