]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/ansi-label-tape
Fix Virtual test
[bacula/bacula] / regress / tests / ansi-label-tape
index d574b058ae8cc906d85a0e64f7c207002b6b04d1..d8d3b48f0579bb7151cec2c2f35135792a7e823b 100755 (executable)
@@ -8,10 +8,12 @@
 # We also use the purge and the relabel commands as
 #   well as a pile of status storage commands.
 #
-TestName="ansi-label-1t1d-tape"
+TestName="ansi-label-tape"
 JobName=backuptape
 . scripts/functions
 
+require_tape_drive
+
 scripts/copy-tape-confs
 /bin/cp -f scripts/ansi-sd-tape.conf bin/bacula-sd.conf
 scripts/cleanup-tape
@@ -26,7 +28,7 @@ cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @output /dev/null
 messages
 @$out ${cwd}/tmp/log1.out
-@#setdebug level=200 storage=DDS-4
+setdebug level=200 storage=DDS-4
 label storage=DDS-4 volume=Vol001 slot=0 pool=Default
 purge volume=Vol001
 relabel pool=Default storage=DDS-4 oldVolume=Vol001 volume=Vol002 slot=0
@@ -41,6 +43,7 @@ messages
 @# now do a restore
 @#
 @$out ${cwd}/tmp/log2.out
+setdebug level=200 storage=DDS-4
 restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
 yes
 wait