# 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 <<END_OF_DATA >tmp/bconcmds
+cat <<END_OF_DATA >${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
#
# now do several restores to ensure we cleanup between jobs
#
-cat <<END_OF_DATA >tmp/bconcmds
+cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@$out /dev/null
restore where=${cwd}/tmp/bacula-restores select all done
yes
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