X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Fnightly-all;h=7f817952a8e959fdef9db59f565544e6dfa02f74;hb=d19a08817542ab4ef7f3a6ec12b9cd13c3a6d6e5;hp=868bc105800a2cb28daec916d809981974f2be3d;hpb=4b61073af1339e8dd0c3e70298bd1abafb94b6c1;p=bacula%2Fbacula diff --git a/regress/nightly-all b/regress/nightly-all index 868bc10580..7f817952a8 100755 --- a/regress/nightly-all +++ b/regress/nightly-all @@ -3,20 +3,28 @@ # run both the disk and the tape based regression tests. # # Include full output +LANG=C +echo "Begin nightly-all `date`" save_debug=${REGRESS_DEBUG} REGRESS_DEBUG=1 export REGRESS_DEBUG -svn update +rm -rf Testing +git pull +make distclean scripts/config_dart nice ctest -D Nightly -R "^(disk|tape|changer):" -if [ $? != 0 ] ; then +rtn=$? +i=0 +while [ $i -le 5 ]; do + if [ $rtn = 0 ] || [ "$rtn" = "8" ] ; then + break; + fi + echo "Submit failed, waiting 5 mins" + sleep 300 echo "ctest failed re-running Submit" ctest -D NightlySubmit - if [ $? != 0 ] ; then - echo "Submit failed, waiting 5 mins" - sleep 300 - echo "ctest failed re-running Submit a second time" - ctest -D NightlySubmit - fi -fi + rtn=$? + i=`expr $i + 1` +done REGRESS_DEBUG=${save_debug} +echo "End nightly-all `date`"