From: Eric Bollengier Date: Fri, 17 Sep 2010 07:37:12 +0000 (+0200) Subject: regress: try to reproduce #1586 about MaxWaitTime X-Git-Tag: Release-5.2.1~1114 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3e7eb1dcef26592716d5c15e4d371a62fd654d6e;p=bacula%2Fbacula regress: try to reproduce #1586 about MaxWaitTime --- diff --git a/regress/tests/maxtime-test b/regress/tests/maxtime-test index 5aa031e848..4dc9751522 100755 --- a/regress/tests/maxtime-test +++ b/regress/tests/maxtime-test @@ -24,16 +24,19 @@ messages label volume=TestVolume001 pool=PoolA @$out ${cwd}/tmp/RUN_MAXTIME.log @# no media => have to wait -run job=RUN_MAXWAITTIME pool=Default yes +run job=RUN_MAXWAITTIME comment="Should fail" pool=Default yes @sleep 2 @# storage is used by RUN_MAXWAITTIME => have to wait -run job=RUN_MAXSTARTDELAY pool=PoolA when="$WHEN" yes +run job=RUN_MAXSTARTDELAY comment="Should fail" pool=PoolA when="$WHEN" yes +@sleep 2 +@# storage is used by the first MAXWAITTIME, but should work +run job=RUN_MAXWAITTIME comment="Should work" pool=PoolA yes @sleep 60 label volume=TestVolume002 pool=Default mount wait messages -run job=RUN_MAXRUNTIME pool=PoolA yes +run job=RUN_MAXRUNTIME comment="Should fail" pool=PoolA yes wait messages st dir @@ -78,7 +81,7 @@ else bstat=1 fi -grep -e '3: Fatal error: Max run time exceeded. Job canceled.' ${cwd}/tmp/RUN_MAXTIME.log >/dev/null +grep -e '4: Fatal error: Max run time exceeded. Job canceled.' ${cwd}/tmp/RUN_MAXTIME.log >/dev/null if [ $? -eq 0 ] then [ "$debug" = 1 ] && echo MAXRUNTIME ok @@ -87,4 +90,14 @@ else bstat=1 fi +grep 'Termination:*Backup OK' ${cwd}/tmp/RUN_MAXTIME.log >/dev/null +if [ $? -eq 0 ] +then + [ "$debug" = 1 ] && echo MAXRUNTIME2 ok +else + echo "MAXRUNTIME2 in error" + bstat=1 +fi + + end_test