From 8d3bc0695d9a1c611c9aba23ede25031a0bc0364 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 6 Aug 2007 18:20:48 +0000 Subject: [PATCH] More debug info git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5294 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/tests/bextract-test | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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=$? -- 2.39.5