mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
Bug 1309060 - Run |mach python-test| in parallel from make check, r=gps
This duplicates code in client.mk to retrieve the number of cores. We should probably just get the build system to define a global variable for this, but I don't know how to do that. MozReview-Commit-ID: CfAGbVMJXXT --HG-- extra : rebase_source : 74fb1d1bcbeaafcde602f238a64198ff3ae6935e
This commit is contained in:
parent
22ef4b7035
commit
fef26faf4b
@ -313,7 +313,8 @@ stage-extensions: make-stage-dir
|
||||
|
||||
|
||||
check::
|
||||
@$(topsrcdir)/mach --log-no-times python-test
|
||||
$(eval cores=$(shell $(PYTHON) -c 'import multiprocessing; print(multiprocessing.cpu_count())'))
|
||||
@$(topsrcdir)/mach --log-no-times python-test -j$(cores)
|
||||
|
||||
|
||||
.PHONY: \
|
||||
|
Loading…
x
Reference in New Issue
Block a user