X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fsmall-file-size-tape;h=2e1dc65e1d30b08ba2093e5f071c4fd49faebae6;hb=b76f7bc37b0fd454157e383cdf8e31672726dce3;hp=9c68cad1ebaee864221d63a7ee2157e403c687e4;hpb=846585b2a47f5ef0e1360476120960dcea4cb6e9;p=bacula%2Fbacula diff --git a/regress/tests/small-file-size-tape b/regress/tests/small-file-size-tape index 9c68cad1eb..2e1dc65e1d 100755 --- a/regress/tests/small-file-size-tape +++ b/regress/tests/small-file-size-tape @@ -6,43 +6,44 @@ TestName="small-file-size-tape" JobName=smallfilesize . scripts/functions -set_debug 0 -copy_tape_confs +require_tape_drive -echo "${cwd}/build" >/tmp/file-list +scripts/copy-tape-confs +scripts/cleanup-tape + +echo "${cwd}/build" >${cwd}/tmp/file-list cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1 sed "s%# Maximum File Size% Maximum File Size%" ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf change_jobname NightlySave $JobName start_test -cat <tmp/bconcmds -@output /dev/null +cat <${cwd}/tmp/bconcmds +@$out /dev/null messages -@$out tmp/log1.out -label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default -setdebug level=2 storage=DDS-4 +@$out ${cwd}/tmp/log1.out +label storage=tape volume=TestVolume001 slot=0 pool=Default +setdebug level=2 storage=tape run job=$JobName yes wait messages @# @# now do a restore @# -@$out tmp/log2.out -restore where=${cwd}/tmp/bacula-restores select storage=DDS-4 +@$out ${cwd}/tmp/log2.out +restore where=${cwd}/tmp/bacula-restores select storage=tape unmark * mark * done yes wait messages -@output quit END_OF_DATA run_bacula -check_for_zombie_jobs storage=DDS-4 +check_for_zombie_jobs storage=tape stop_bacula check_two_logs