Skip to content

Commit

Permalink
timeout addon tests after 1.5 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Sep 27, 2016
1 parent b2c7792 commit b257138
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion run-ib-addon.py
Expand Up @@ -9,7 +9,7 @@
exit(1)

logger = LogUpdater(environ["CMSSW_BASE"])
ret = doCmd('cd '+environ["CMSSW_BASE"]+'; rm -rf addOnTests; addOnTests.py -j '+str(cmsRunProcessCount)+' 2>&1 >addOnTests.log ')
ret = doCmd('cd '+environ["CMSSW_BASE"]+'; rm -rf addOnTests; timeout 5400 addOnTests.py -j '+str(cmsRunProcessCount)+' 2>&1 >addOnTests.log ')
doCmd('cd '+environ["CMSSW_BASE"]+'/addOnTests/logs; zip -r addOnTests.zip *.log')
logger.updateAddOnTestsLogs()

2 changes: 1 addition & 1 deletion run-pr-tests
Expand Up @@ -587,7 +587,7 @@ fi
if [ "X$DO_ADDON_TESTS" = Xtrue -a "X$BUILD_OK" = Xtrue ]; then
$CMS_BOT_DIR/report-pull-request-results TESTS_RUNNING --repo $PUB_REPO --pr $PULL_REQUEST_NUMBER -c $LAST_COMMIT --pr-job-id ${BUILD_NUMBER} --add-message "Running AddOn Tests" $DRY_RUN
echo '--------------------------------------'
ADDON_CMD="addOnTests.py -j $(Jenkins_GetCPU) "
ADDON_CMD="timeout 5400 addOnTests.py -j $(Jenkins_GetCPU) "
echo $ADDON_CMD > $WORKSPACE/addOnTests.log
(eval $ADDON_CMD && echo 'ALL_OK') 2>&1 | tee -a $WORKSPACE/addOnTests.log
echo 'END OF ADDON TESTS'
Expand Down

0 comments on commit b257138

Please sign in to comment.