Skip to content

Commit

Permalink
Merge pull request cms-sw#96 from nclopezo/use-nproc_onln
Browse files Browse the repository at this point in the history
run-pr-tests: Add _NPROCESSORS_ONLN to scram b
  • Loading branch information
nclopezo committed Jul 25, 2014
2 parents 2dffe1d + 5c77945 commit a90c6aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run-pr-tests
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ git cms-checkdeps -A -a
BUILD_LOG_URL=https:\/\/cmssdt.cern.ch\/SDT\/jenkins-artifacts\/pull-request-integration\/${BUILD_NUMBER}\/build.log
sed -i "s/PARAM_BUILD_LOG_URL/https:\/\/cmssdt.cern.ch\/SDT\/jenkins-artifacts\/pull-request-integration\/PR-${PULL_REQUEST}\/${BUILD_NUMBER}\/build.log/g" $WORKSPACE/summary.html

scram b -k -j 10 2>&1 | tee -a $WORKSPACE/build.log
scram b -k -j $(getconf _NPROCESSORS_ONLN) 2>&1 | tee -a $WORKSPACE/build.log
echo 'END OF BUILD LOG'
echo '--------------------------------------'

Expand All @@ -127,7 +127,7 @@ fi
if [ "X$DO_TESTS" = Xtrue -a "X$BUILD_OK" = Xtrue ]; then
sed -i "s/PARAM_UNIT_TESTS_URL/https:\/\/cmssdt.cern.ch\/SDT\/jenkins-artifacts\/pull-request-integration\/PR-${PULL_REQUEST}\/${BUILD_NUMBER}\/unitTests.log/g" $WORKSPACE/summary.html
echo '--------------------------------------'
scram b -k -j 12 runtests 2>&1 | tee -a $WORKSPACE/unitTests.log
scram b -k -j $(getconf _NPROCESSORS_ONLN) runtests 2>&1 | tee -a $WORKSPACE/unitTests.log
echo 'END OF UNIT TESTS'
echo '--------------------------------------'
#######################################
Expand Down

0 comments on commit a90c6aa

Please sign in to comment.