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:
Andrew Halberstadt 2016-10-11 16:06:35 -04:00
parent 22ef4b7035
commit fef26faf4b

View File

@ -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: \