mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
gh-84461: Fix parallel testing on WebAssembly (GH-93768)
(cherry picked from commit c2007573dd
)
Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
dc6dd8ee87
commit
02ff1ccfb7
2 changed files with 11 additions and 6 deletions
|
@ -63,9 +63,9 @@ def main(regrtest_args):
|
|||
args.append('-n') # Silence alerts under Windows
|
||||
if not any(is_multiprocess_flag(arg) for arg in regrtest_args):
|
||||
if cross_compile and hostrunner:
|
||||
# For now use only one core for cross-compiled builds;
|
||||
# For now use only two cores for cross-compiled builds;
|
||||
# hostrunner can be expensive.
|
||||
args.extend(['-j', '1'])
|
||||
args.extend(['-j', '2'])
|
||||
else:
|
||||
args.extend(['-j', '0']) # Use all CPU cores
|
||||
if not any(is_resource_use_flag(arg) for arg in regrtest_args):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue