From: Kern Sibbald Date: Tue, 1 Sep 2009 16:54:58 +0000 (+0200) Subject: tweak btape fill test X-Git-Tag: Release-7.0.0~2636^2~3^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b70c117e1153ba954314b85d5fb35e0bcef8186b;p=bacula%2Fbacula tweak btape fill test --- diff --git a/regress/tests/btape-fill-full-tape b/regress/tests/btape-fill-full-tape index 6c34094ab8..f33a89848e 100755 --- a/regress/tests/btape-fill-full-tape +++ b/regress/tests/btape-fill-full-tape @@ -3,24 +3,39 @@ # Test the fill command in btape # TestName="btape-fill-full-tape" -JobName=AutoLabel +JobName=btape-fill . scripts/functions require_tape_drive -scripts/copy-tape-confs +scripts/copy-btape-confs scripts/cleanup-tape change_jobname $JobName start_test -$bin/btape -c bin/bacula-sd.conf DDS-4 <${cwd}/tmp/log1.out 2>&1 +# +# Increase block size to 262144 +# +cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1 +sed -e 's%64512%262144%' ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf + + +if test "$debug" -eq 1 ; then + $bin/btape -c bin/bacula-sd.conf tape <${cwd}/tmp/log1.out 2>&1 +fill +s +quit +END_OF_DATA +fi grep "^The last block on the tape matches\. Test succeeded\." ${cwd}/tmp/log1.out >/dev/null 2>&1 if [ $? != 0 ] ; then