X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=regress%2Ftests%2Ffour-jobs-tape;h=0a4ab4d25ac598ebcd44900db1ef445eb3e78d6a;hb=e1d2438958fff71fe6d2e64398733825ef520ce7;hp=4b082dbe0e1464586addfc0fe8e40f85f106ee47;hpb=b924f85d989f0fb92065ecfbc8c93ac9610bd05d;p=bacula%2Fbacula diff --git a/regress/tests/four-jobs-tape b/regress/tests/four-jobs-tape index 4b082dbe0e..0a4ab4d25a 100755 --- a/regress/tests/four-jobs-tape +++ b/regress/tests/four-jobs-tape @@ -5,12 +5,6 @@ # It should require at least 4 different bsrs. # cwd=`pwd` -bin/bacula stop 2>&1 >/dev/null -cd bin -./drop_bacula_tables >/dev/null 2>&1 -./make_bacula_tables >/dev/null 2>&1 -./grant_bacula_privileges 2>&1 >/dev/null -cd .. scripts/copy-tape-confs scripts/cleanup-tape @@ -100,20 +94,28 @@ restore where=${cwd}/tmp/bacula-restores select all done yes wait @output tmp/log2.out +@# +@# now unmount the tape and start two restores +@# at the same time +@# +unmount storage=DDS-4 +restore where=${cwd}/tmp/bacula-restores select all done +yes restore where=${cwd}/tmp/bacula-restores select unmark * mark * done yes +mount storage=DDS-4 wait messages @output quit END_OF_DATA bin/bacula stop 2>&1 >/dev/null -grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null +grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null bstat=$? -grep "^Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null +grep "^ Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null rstat=$? diff -r build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then