]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/functions
Check for file count mismatch
[bacula/bacula] / regress / scripts / functions
index 4791db9c7a247da2cf47ce5042ab4933cd82e8ee..28c85f3a77cc3cc612b7cffe38b1463095f1af81 100644 (file)
@@ -109,6 +109,10 @@ check_two_logs()
    bstat=$?
    grep "^  Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
    rstat=$?
+   grep "^  Termination: *Restore OK -- warning file count mismatch" tmp/log2.out 2>&1 >/dev/null
+   if test $? -eq 0; then
+      rstat = 2
+   fi
 }
 
 check_restore_diff()
@@ -177,6 +181,5 @@ else
    set_debug 0
 fi
 
-# Source the second drive variables
-touch ${cwd}/config.out
-. ${cwd}/config.out
+# Source the configuration variables
+. ${cwd}/config