Skip to content

Commit

Permalink
Merge pull request #45 from zwicker-group/parallize_tests
Browse files Browse the repository at this point in the history
Run serial tests using multiple cores
  • Loading branch information
david-zwicker authored Aug 2, 2023
2 parents fe165f9 + d5b21f2 commit 5cdb95d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ def run_unit_tests(

# run tests using multiple cores?
if parallel:
from multiprocessing import cpu_count

args.extend(["-n", str(cpu_count() // 2), "--durations=10"])
args.extend(["-n", str(os.cpu_count()), "--durations=10"])

# run only a subset of the tests?
if pattern is not None:
Expand Down

0 comments on commit 5cdb95d

Please sign in to comment.