From: Eric Bollengier Date: Thu, 27 May 2010 13:31:55 +0000 (+0200) Subject: regress: test when a multi-storage restore needs to wait for a busy drive X-Git-Tag: Release-5.2.1~1333 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=308393bb142de2266ae0f07017e5f252c0012433;p=bacula%2Fbacula regress: test when a multi-storage restore needs to wait for a busy drive --- diff --git a/regress/tests/multi2-storage-test b/regress/tests/multi2-storage-test index 2ee6507732..d8e2889fa3 100755 --- a/regress/tests/multi2-storage-test +++ b/regress/tests/multi2-storage-test @@ -118,7 +118,7 @@ messages @# @# now do a restore @# -@$out ${cwd}/tmp/log2.out +@$out ${cwd}/tmp/log22.out setdebug trace=1 level=110 client setdebug trace=1 level=110 director restore where=${cwd}/tmp/bacula-restores select all done yes @@ -131,6 +131,28 @@ status all run level=Incremental storage=File4 job=$JobName yes wait messages +@# run a job that will wait for a volume +@$out ${cwd}/tmp/log23.out +@exec "touch $cwd/build/po/Changelog" +run level=Incremental pool=Special storage=File3 job=$JobName yes +@sleep 5 +messages +status dir +status storage=File3 +@sleep 3 +@# +@# now do a restore with a backup that takes a drive +@# +setdebug trace=1 level=110 client +setdebug trace=1 level=110 director +restore where=${cwd}/tmp/bacula-restores select all done yes +@sleep 10 +messages +status dir +label storage=File3 volume=test3 pool=Special +mount storage=File3 +wait +messages show storage sql select * FROM Storage; @@ -142,6 +164,9 @@ END_OF_DATA run_bconsole check_for_zombie_jobs storage=File +check_for_zombie_jobs storage=File2 +check_for_zombie_jobs storage=File3 +check_for_zombie_jobs storage=File4 check_for_zombie_jobs storage=tape stop_bacula @@ -149,7 +174,12 @@ for sd in 2 3 4; do $tmp/bacula-ctl-sd$sd stop &> /dev/null done +# we have two restore to test +cp $tmp/log22.out $tmp/log2.out check_two_logs +cp $tmp/log23.out $tmp/log2.out +check_two_logs + check_restore_diff end_test