+nice ctest -D Nightly -R "^(disk|tape|changer):"
+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
+ rtn=$?
+ i=`expr $i + 1`
+done
+echo "End nightly-all `date`"