]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/relabel-tape
Commit libdbi changes
[bacula/bacula] / regress / tests / relabel-tape
index 2650dd0265a049cf2de86985f05e6c0fe7c519b9..d929db335892e6a1380bd17eea643a482905d935 100755 (executable)
@@ -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 <<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
@@ -31,7 +34,7 @@ update volume=TestVolume001
 1
 .
 run job=$JobName level=Full yes
-@sleep 20
+wait
 unmount storage=DDS-4
 unmount storage=DDS-4
 @#setdebug level=150 storage=DDS-4
@@ -56,7 +59,7 @@ echo "Backup done"
 # 
 # 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
@@ -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