]> git.sur5r.net Git - bacula/bacula/commitdiff
More debug info
authorKern Sibbald <kern@sibbald.com>
Mon, 6 Aug 2007 18:20:48 +0000 (18:20 +0000)
committerKern Sibbald <kern@sibbald.com>
Mon, 6 Aug 2007 18:20:48 +0000 (18:20 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5294 91ce42f0-d328-0410-95d8-f526ca767f89

regress/tests/bextract-test

index 040718798082bb2b1a2e5ebd86d79ef1bb710f7b..89ffcbd28a105d54050c07ded7aaa9bf3c580e03 100755 (executable)
@@ -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=$?