X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Frelabel-tape;h=d929db335892e6a1380bd17eea643a482905d935;hb=5dd06f639b5e883410a3af50727706a3d16e4028;hp=70516d2043b7bf972b3eaefc918f95e95b3eef1b;hpb=45dc0d2f1f568fcc62526533adacde65df441837;p=bacula%2Fbacula diff --git a/regress/tests/relabel-tape b/regress/tests/relabel-tape index 70516d2043..d929db3358 100755 --- a/regress/tests/relabel-tape +++ b/regress/tests/relabel-tape @@ -4,26 +4,29 @@ # then backup four times, each with incremental then finally restore. # It should require at least 4 different bsrs. # -TestName="relabel-tape" +TestName="relabel-1t1d-tape" JobName=Relabeltape . scripts/functions +require_tape_drive + scripts/cleanup-tape scripts/copy-tape-confs -echo "${cwd}/build" >/tmp/file-list + +echo "${cwd}/build" >${cwd}/tmp/file-list change_jobname $JobName start_test -cat <tmp/bconcmds +cat <${cwd}/tmp/bconcmds @output /dev/null messages -@$out tmp/log1.out +@$out ${cwd}/tmp/log1.out label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default run job=$JobName level=Full yes wait messages -add pool=Default +add pool=Default storage=DDS-4 0 TestVolume002 @# set status to append @@ -31,14 +34,14 @@ update volume=TestVolume001 1 . run job=$JobName level=Full yes -@sleep 20 -unmount -unmount +wait +unmount storage=DDS-4 +unmount storage=DDS-4 @#setdebug level=150 storage=DDS-4 purge volume=TestVolume001 -relabel oldvolume=TestVolume001 volume=TestVolume003 slot=0 pool=Default +relabel oldvolume=TestVolume001 volume=TestVolume003 slot=0 pool=Default storage=DDS-4 list volumes -mount +mount storage=DDS-4 messages wait run job=$JobName level=Full yes @@ -56,7 +59,7 @@ echo "Backup done" # # now do several restores to ensure we cleanup between jobs # -cat <tmp/bconcmds +cat <${cwd}/tmp/bconcmds @$out /dev/null restore where=${cwd}/tmp/bacula-restores select all done yes @@ -64,7 +67,7 @@ wait restore where=${cwd}/tmp/bacula-restores select all done yes wait -@$out tmp/log2.out +@$out ${cwd}/tmp/log2.out @# @# now unmount the tape and start two restores @# at the same time