]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/restore-by-file-tape
updates
[bacula/bacula] / regress / tests / restore-by-file-tape
index 8ac4118cf17599fccbda1bf41238bbd452375d48..060a43e73aed41c3857efd94bd451e52cefc8d5c 100755 (executable)
@@ -6,10 +6,14 @@
 #   file size to 1M, it runs very slow. There are about 64 files that
 #   are created during each of the two backups.
 #
-TestName="restore-by-file-1t1d-tape"
+TestName="restore-by-file-tape"
 JobName=restorebyfile
 . scripts/functions
-copy_tape_confs
+
+require_tape_drive
+
+scripts/copy-tape-confs
+scripts/cleanup-tape
 
 echo "${cwd}/build" >${cwd}/tmp/file-list
 sed s%\^%${cwd}% ${cwd}/scripts/flist | sort | uniq >${cwd}/tmp/restore2-list
@@ -89,7 +93,7 @@ stop_bacula
 check_two_logs
 
 scripts/check_for_zombie_jobs storage=DDS-4
-bin/bacula stop 2>&1 >/dev/null
+stop_bacula
 for i in `cat ${cwd}/tmp/restore2-list`; do
    diff $i ${cwd}/tmp/bacula-restores$i
    if [ $? != 0 ] ; then