From: Kern Sibbald Date: Mon, 6 Aug 2007 18:20:48 +0000 (+0000) Subject: More debug info X-Git-Tag: Release-7.0.0~5892 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3c565614552926ed52e0af071572a4d6f59ecc52;p=bacula%2Fbacula More debug info git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5294 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/tests/bextract-test b/regress/tests/bextract-test index 0407187980..89ffcbd28a 100755 --- a/regress/tests/bextract-test +++ b/regress/tests/bextract-test @@ -28,7 +28,7 @@ run job=$JobName storage=File1 yes wait messages @# -@# now build the bsr file +@# now build the bsr file but do not restore @# @$out tmp/log2.out restore bootstrap=${cwd}/working/restore.bsr where=${cwd}/tmp/bacula-restores select all storage=File1 done @@ -44,7 +44,11 @@ check_for_zombie_jobs storage=File1 stop_bacula mkdir -p ${cwd}/tmp/bacula-restores -bin/bextract -b working/restore.bsr -c bin/bacula-sd.conf ${cwd}/tmp ${cwd}/tmp/bacula-restores 2>&1 >/dev/null +if test "$debug" -eq 1 ; then + bin/bextract -v -b working/restore.bsr -c bin/bacula-sd.conf ${cwd}/tmp ${cwd}/tmp/bacula-restores +else + bin/bextract -b working/restore.bsr -c bin/bacula-sd.conf ${cwd}/tmp ${cwd}/tmp/bacula-restores 2>&1 >/dev/null +fi rstat=$? grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null bstat=$?