X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=regress%2Ftests%2Ftruncate-bug-tape;h=c1a12d481e9792115d44c68372ae0a03924262d9;hb=3a3e106aa07b87f4d9cd711e975f622a2b435dd0;hp=82b1cf54a80a6431720150bbbd835194eba56277;hpb=5b4f40e5baaa8cbba795741f60488e464fddea1e;p=bacula%2Fbacula diff --git a/regress/tests/truncate-bug-tape b/regress/tests/truncate-bug-tape index 82b1cf54a8..c1a12d481e 100755 --- a/regress/tests/truncate-bug-tape +++ b/regress/tests/truncate-bug-tape @@ -5,13 +5,15 @@ TestName="truncate-bug-tape" JobName=truncatebug . scripts/functions -set_debug 0 + +require_tape_drive scripts/copy-tape-confs scripts/cleanup-tape -echo "${cwd}/build" >/tmp/file-list -change_jobname $JobName +echo "${cwd}/build" >${cwd}/tmp/file-list + +change_jobname NightlySave $JobName start_test cat <tmp/bconcmds @@ -20,7 +22,9 @@ messages @$out tmp/log1.out label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default @# do a bunch of saves so we have 12 files on the tape -run job=NightlySave yes +@#setdebug level=100 dir +setdebug level=100 storage=DDS-4 +run job=$JobName yes run level=Full job=$JobName yes run level=Full job=$JobName yes run level=Full job=$JobName yes @@ -43,7 +47,7 @@ scripts/check_for_zombie_jobs storage=DDS-4 cat <tmp/bconcmds @output /dev/null messages -@$out tmp/log1.out +@$out tmp/log2.out @# @# now do a restore @# @@ -65,23 +69,22 @@ END_OF_DATA run_bconsole scripts/check_for_zombie_jobs storage=DDS-4 +# Now write to tape one more time cat <tmp/bconcmds @output /dev/null messages -@$out tmp/log2.out +@$out tmp/log3.out run level=Full job=$JobName yes wait messages quit END_OF_DATA -bin/bacula stop 2>&1 >/dev/null run_bconsole check_for_zombie_jobs storage=DDS-4 stop_bacula check_two_logs -# no diff made -dstat=0 +grep "^ Termination: *Backup OK" tmp/log3.out 2>&1 >/dev/null +dstat=$? end_test -