Skip to content

Commit

Permalink
Merge pull request #578 from mattyjams/pr/run_tests_using_context_num…
Browse files Browse the repository at this point in the history
…Jobs

do not hard-code the number of jobs to 1 when running ctest
  • Loading branch information
Krystian Ligenza authored Jun 26, 2020
2 parents 9b457e9 + ce0fc54 commit 9ff9784
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,19 +287,15 @@ def RunCMake(context, extraArgs=None, stages=None):
def RunCTest(context, extraArgs=None):
buildDir = context.buildDir
variant = BuildVariant(context)
#TODO we can't currently run tests in parallel, something to revisit.
numJobs = 1

with CurrentWorkingDirectory(buildDir):
Run(context,
'ctest '
'--output-on-failure '
'--timeout 300 '
'-j {numJobs} '
'-C {variant} '
'{extraArgs} '
.format(numJobs=numJobs,
variant=variant,
.format(variant=variant,
extraArgs=(" ".join(extraArgs) if extraArgs else "")))

def RunMakeZipArchive(context):
Expand Down

0 comments on commit 9ff9784

Please sign in to comment.