]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/nightly-tape
ebl Update overview
[bacula/bacula] / regress / nightly-tape
index cf136f533ff64bd414958c8875054fbd4df71700..1c5a85ea89165c8fb3fdae345293b70c705dc7eb 100755 (executable)
@@ -3,13 +3,27 @@
 # test only the disk based regression scripts
 #
 # Include full output
+LANG=C
+echo "Begin nightly-tape `date`"
 save_debug=${REGRESS_DEBUG}
 REGRESS_DEBUG=1
 export REGRESS_DEBUG
+rm -rf Testing
+svn update
 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
+   rtn=$?
+   i=`expr $i + 1`
+done
 REGRESS_DEBUG=${save_debug}
+echo "End nightly-tape `date`"