X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Frelabel-tape;h=d929db335892e6a1380bd17eea643a482905d935;hb=5dd06f639b5e883410a3af50727706a3d16e4028;hp=f7bed837f08590b955b7b72b356102ea58531d43;hpb=2ac141d960d9ee16a8f4dd09b9f3555dae634904;p=bacula%2Fbacula diff --git a/regress/tests/relabel-tape b/regress/tests/relabel-tape index f7bed837f0..d929db3358 100755 --- a/regress/tests/relabel-tape +++ b/regress/tests/relabel-tape @@ -4,21 +4,24 @@ # 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 @@ -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