Skip to content

Commit

Permalink
Add timeout message if addon tests do not finish properly
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Apr 8, 2020
1 parent e13f65f commit 9969c92
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pr_testing/test_multiple_prs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1076,16 +1076,20 @@ if [ "X$DO_ADDON_TESTS" = Xtrue -a "X$BUILD_OK" = Xtrue -a "$RUN_TESTS" = "true"
esac
#End of 71x data hack
echo '--------------------------------------'
date
ADDON_CMD="CMSSW_SEARCH_PATH=$EX_DATA_SEARCH CMS_PATH=/cvmfs/cms-ib.cern.ch/week0 timeout 7200 addOnTests.py -j ${NCPU}"
echo $ADDON_CMD > $WORKSPACE/addOnTests.log
STIME=$(date +%s)
(eval $ADDON_CMD && echo 'ALL_OK') 2>&1 | tee -a $WORKSPACE/addOnTests.log
date
set DTIME=$(date +%s)-$STIME
echo 'END OF ADDON TESTS'
echo '--------------------------------------'
if [ -d addOnTests ] ; then
mv addOnTests $WORKSPACE/addOnTests
fi
if [ $(grep ' tests passed, ' $WORKSPACE/addOnTests.log | wc -l) -eq 0 ] ; then
echo "AddOnTest might have timed out: FAILED - $DTIME secs" >> $WORKSPACE/addOnTests.log
fi

TEST_ERRORS=`grep -i -E ": FAILED .*" $WORKSPACE/addOnTests.log` || true
GENERAL_ERRORS=`grep "ALL_OK" $WORKSPACE/addOnTests.log` || true

Expand Down

0 comments on commit 9969c92

Please sign in to comment.