]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/btape-fill-tape
Update
[bacula/bacula] / regress / tests / btape-fill-tape
index e84e465100e9187ea4c521a87b1e8e08317131df..bca41b964d035fabd7309f23f9cf2edf0c3429f7 100755 (executable)
@@ -5,27 +5,25 @@
 TestName="btape-fill-tape"
 JobName=filltape
 . scripts/functions
-set_debug 0
 
 copy_tape_confs
 
-echo "${cwd}/build" >/tmp/file-list
+echo "${cwd}/build" >${cwd}/tmp/file-list
 
 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
 sed "s%# MaximumVolumeSize%  MaximumVolumeSize%" ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
 
 start_test
 
-cat <<END_OF_DATA >tmp/bconcmds
+cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 fill
 s
-
 quit
 END_OF_DATA
 
 run_btape DDS-4
 
-grep "^The last block on the tape matches\. Test succeeded\." tmp/log1.out 2>&1 >/dev/null
+grep "^The last block on the tape matches\. Test succeeded\." ${cwd}/tmp/log1.out 2>&1 >/dev/null
 if [ $? != 0 ] ; then
    echo " "
    echo " "