svn update
scripts/config_dart
nice ctest -D Experimental -R "^(disk|tape|changer):"
-if [ $? != 0 ] ; then
+rtn=$?
+i=0
+while [ $i -le 5 ]; do
+ if [ $rtn = 0 ] ; then
+ break;
+ fi
+ echo "Submit failed, waiting 5 mins"
+ sleep 300
echo "ctest failed re-running Submit"
ctest -D ExperimentalSubmit
- if [ $? != 0 ] ; then
- echo "Submit failed, waiting 5 mins"
- sleep 300
- echo "ctest failed re-running Submit a second time"
- ctest -D ExperimentalSubmit
- fi
-fi
+ rtn=$?
+ i=`expr $i + 1`
+done
REGRESS_DEBUG=${save_debug}
echo "End experimental-all `date`"
svn update
scripts/config_dart
nice ctest -D Experimental -R "^disk:"
-if [ $? != 0 ] ; then
+rtn=$?
+i=0
+while [ $i -le 5 ]; do
+ if [ $rtn = 0 ] ; then
+ break;
+ fi
+ echo "Submit failed, waiting 5 mins"
+ sleep 300
echo "ctest failed re-running Submit"
ctest -D ExperimentalSubmit
- if [ $? != 0 ] ; then
- echo "Submit failed, waiting 5 mins"
- sleep 300
- echo "ctest failed re-running Submit a second time"
- ctest -D ExperimentalSubmit
- fi
-fi
+ rtn=$?
+ i=`expr $i + 1`
+done
REGRESS_DEBUG=${save_debug}
echo "End experimental-disk `date`"
svn update
scripts/config_dart
nice ctest -D Experimental -R "^(disk|tape):"
-if [ $? != 0 ] ; then
+rtn=$?
+i=0
+while [ $i -le 5 ]; do
+ if [ $rtn = 0 ] ; then
+ break;
+ fi
+ echo "Submit failed, waiting 5 mins"
+ sleep 300
echo "ctest failed re-running Submit"
ctest -D ExperimentalSubmit
- if [ $? != 0 ] ; then
- echo "Submit failed, waiting 5 mins"
- sleep 300
- echo "ctest failed re-running Submit a second time"
- ctest -D ExperimentalSubmit
- fi
-fi
+ rtn=$?
+ i=`expr $i + 1`
+done
REGRESS_DEBUG=${save_debug}
echo "End experimental-disk-and-tape `date`"
svn update
scripts/config_dart
nice ctest -D Experimental -R "^tape:"
-if [ $? != 0 ] ; then
+rtn=$?
+i=0
+while [ $i -le 5 ]; do
+ if [ $rtn = 0 ] ; then
+ break;
+ fi
+ echo "Submit failed, waiting 5 mins"
+ sleep 300
echo "ctest failed re-running Submit"
ctest -D ExperimentalSubmit
- if [ $? != 0 ] ; then
- echo "Submit failed, waiting 5 mins"
- sleep 300
- echo "ctest failed re-running Submit a second time"
- ctest -D ExperimentalSubmit
- fi
-fi
+ rtn=$?
+ i=`expr $i + 1`
+done
REGRESS_DEBUG=${save_debug}
echo "End experimental-tape `date`"
svn update
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 ] ; 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`"
svn update
scripts/config_dart
nice ctest -D Nightly -R "^disk:"
-if [ $? != 0 ] ; then
+rtn=$?
+i=0
+while [ $i -le 5 ]; do
+ if [ $rtn = 0 ] ; 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-disk `date`"
svn update
scripts/config_dart
nice ctest -D Experimental -R "^(disk|tape):"
-if [ $? != 0 ] ; then
- echo "ctest failed re-running Submit"
- ctest -D ExperimentalSubmit
- if [ $? != 0 ] ; then
- echo "Submit failed, waiting 5 mins"
- sleep 300
- echo "ctest failed re-running Submit a second time"
- ctest -D NightlySubmit
+rtn=$?
+i=0
+while [ $i -le 5 ]; do
+ if [ $rtn = 0 ] ; then
+ break;
fi
-fi
+ echo "Submit failed, waiting 5 mins"
+ sleep 300
+ echo "ctest failed re-running Submit"
+ ctest -D NightlySubmit
+ rtn=$?
+ i=`expr $i + 1`
+done
REGRESS_DEBUG=${save_debug}
echo "End nightly-disk-and-tape `date`"
svn update
scripts/config_dart
nice ctest -D Nightly -R "^tape:"
-if [ $? != 0 ] ; then
+rtn=$?
+i=0
+while [ $i -le 5 ]; do
+ if [ $rtn = 0 ] ; 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-tape `date`"