X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Fnightly-tape;h=e0624741b0c0453a37d03d763eaf01bdb1083cdd;hb=HEAD;hp=4ca2f5f16ae3773598b43c21adbf4103e512bf4b;hpb=8dae6fa4674ca265bb84b74948a9cd23df422f7b;p=bacula%2Fbacula diff --git a/regress/nightly-tape b/regress/nightly-tape index 4ca2f5f16a..e0624741b0 100755 --- a/regress/nightly-tape +++ b/regress/nightly-tape @@ -1,16 +1,34 @@ #!/bin/sh +# +# Copyright (C) 2000-2015 Kern Sibbald +# License: BSD 2-Clause; see file LICENSE-FOSS +# + # # test only the disk based regression scripts # # Include full output -save_debug=${REGRESS_DEBUG} +LANG=C +echo "Begin nightly-tape `date`" REGRESS_DEBUG=1 export REGRESS_DEBUG -svn update +rm -rf Testing +rm -f dumps/* +git pull +make distclean scripts/config_dart -nice ctest -D Nightly -R "all-non-root-tape:" -if [ $? != 0 ] ; then +nice ctest -D Nightly -R "^tape:" +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 -fi -REGRESS_DEBUG=${save_debug} + rtn=$? + i=`expr $i + 1` +done +echo "End nightly-tape `date`"