From 1cfbad6b2e726d32d28b2265abfefd2ef140d548 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 20 Sep 2007 16:06:54 +0000 Subject: [PATCH] Check for file count mismatch git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5611 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/scripts/functions | 4 ++++ regress/tests/ansi-label-tape | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/regress/scripts/functions b/regress/scripts/functions index 910b57fe04..28c85f3a77 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -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() diff --git a/regress/tests/ansi-label-tape b/regress/tests/ansi-label-tape index 28cd2325f1..e64ff19a04 100755 --- a/regress/tests/ansi-label-tape +++ b/regress/tests/ansi-label-tape @@ -63,7 +63,7 @@ cat <tmp/bconcmds messages @$out tmp/log1.out list volumes -setdebug level=300 storage=DDS-4 +@#setdebug level=300 storage=DDS-4 run job=$JobName yes wait list volumes -- 2.39.5