X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fmaxtime-test;h=0b1de00cd74a0ba407d14a51409624c2d98ae229;hb=c0aaad2cbccdf8a49448666d2ba89ca4fe531ec9;hp=65bd59a1e1f61f7883cac1991b825533c660ef93;hpb=25daee7d2a896f1da1f4ac8ffd8b1b57454d1943;p=bacula%2Fbacula diff --git a/regress/tests/maxtime-test b/regress/tests/maxtime-test index 65bd59a1e1..0b1de00cd7 100755 --- a/regress/tests/maxtime-test +++ b/regress/tests/maxtime-test @@ -13,7 +13,7 @@ copy_test_confs rm -f bin/bacula-dir.conf rm -f ${cwd}/tmp/RUN*log /bin/cp -f scripts/bacula-dir.conf.maxtime bin/bacula-dir.conf -WHEN=$(date '+%Y-%m-%d %H:%M:%S') +WHEN=`date '+%Y-%m-%d %H:%M:%S'` echo "${cwd}/build/po" >${cwd}/tmp/file-list @@ -43,12 +43,15 @@ END_OF_DATA mkfifo ${cwd}/tmp/fifo3) 2> /dev/null run_bacula +check_for_zombie_jobs storage=File +stop_bacula rm ${cwd}/tmp/fifo ${cwd}/tmp/fifo2 ${cwd}/tmp/fifo3 export dstat=0 export bstat=0 export rstat=0 +touch ${cwd}/tmp/log1.out grep -e '1: Fatal error: Max wait time exceeded. Job canceled.' ${cwd}/tmp/RUN_MAXTIME.log >/dev/null if [ $? -eq 0 ]