X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Frestore-seek-tape;h=041c278debe474065e11b3635e8d4727f3500a03;hb=bc38c90fe52f894841b458e808e8c8538cb4cd6b;hp=b86b75d9e11473a7663783847e40c582aaba8fb3;hpb=6e56e13bd05c1c7a7cbc73e737ff7595cd722230;p=bacula%2Fbacula diff --git a/regress/tests/restore-seek-tape b/regress/tests/restore-seek-tape index b86b75d9e1..041c278deb 100755 --- a/regress/tests/restore-seek-tape +++ b/regress/tests/restore-seek-tape @@ -9,10 +9,13 @@ TestName="restore-seek-tape" JobName=restore-tape-seek . scripts/functions -set_debug 1 -copy_tape_confs -echo "${cwd}/tmp/build" >/tmp/file-list +require_tape_drive + +scripts/copy-tape-confs +scripts/cleanup-tape + +echo "${cwd}/tmp/build" >${cwd}/tmp/file-list rm -rf ${cwd}/tmp/build mkdir ${cwd}/tmp/build # Copy only the .c files (to be restored) @@ -25,7 +28,7 @@ done cd ${cwd}/tmp/build ls >../1 cd .. -sed s%\^%${cwd}/tmp/build/% 1 >restore-list +sed s%\^%${cwd}/tmp/build/% 1 | sort | uniq >restore-list # # At this point restore-list contains the list # of files we will restore @@ -48,10 +51,10 @@ sed "s%# Maximum File Size = 1000000% Maximum File Size = 10KB%" ${cwd}/tmp/1 > change_jobname NightlySave $JobName start_test -cat <tmp/bconcmds +cat <${cwd}/tmp/bconcmds @$out /dev/null messages -@$out tmp/log1.out +@$out ${cwd}/tmp/log1.out label storage=DDS-4 volume=TestVolume001 pool=Default run job=$JobName yes wait @@ -59,7 +62,7 @@ messages @# @# now do a restore @# -@$out tmp/log2.out +@$out ${cwd}/tmp/log2.out setdebug level=30 fd setdebug level=10 storage=DDS-4 sql