From: Eric Bollengier Date: Sat, 28 Jun 2008 13:21:06 +0000 (+0000) Subject: ebl show an other bug of the current code X-Git-Tag: Release-7.0.0~4368 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aad097943b313595f58e3080e35a1ca5fbcd6ed1;p=bacula%2Fbacula ebl show an other bug of the current code git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7251 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/tests/next-vol-test b/regress/tests/next-vol-test index d48f171055..5828bdc17f 100755 --- a/regress/tests/next-vol-test +++ b/regress/tests/next-vol-test @@ -107,13 +107,6 @@ EOF run_bconsole -check_for_zombie_jobs storage=LTO3 -stop_bacula - -cp tmp/log2.out tmp/log1.out -check_two_logs - - awk '/Must choose/ { print $4 } ' tmp/log2.out > tmp/normal awk '/Volume name.+:/ { print $3 } ' tmp/log2.out > tmp/real diff tmp/normal tmp/real > /dev/null @@ -124,8 +117,9 @@ export dstat=$? # in this situation, we have 1 available volume (vol50) and bacula will try to use # vol47, vol48 and vol49 and will stop without using vol50. + cat < ${cwd}/tmp/bconcmds -@$out ${cwd}/tmp/log2.out +@$out ${cwd}/tmp/log1.out update volume=vol47 pool=Test VolStatus=Used VolRetention=10s inchanger=no RecyclePool=Test update volume=vol48 pool=Test VolStatus=Used VolRetention=10s inchanger=no RecyclePool=Test update volume=vol49 pool=Test VolStatus=Used VolRetention=10s inchanger=no RecyclePool=Test @@ -136,6 +130,20 @@ update Media SET LastWritten='2005-01-01 01:00:00' WHERE VolumeName IN ('vol47', list volume run level=full pool=Test NightlySave yes wait +messages +quit EOF +run_bconsole + +check_for_zombie_jobs storage=LTO3 +stop_bacula + +grep "Invalid slot=0 defined in catalog for Volume" tmp/log1.out > /dev/null +if [ $? -ne 0 ]; then + bstat=$? +fi + +check_two_logs + end_test