]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/functions
Check for file count mismatch
[bacula/bacula] / regress / scripts / functions
index 910b57fe047fcc0b0d96c6285575fb6204978f14..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()