test: inherit JOBS from environment
authorJohan Bergström <bugs@bergstroem.nu>
Thu, 31 Dec 2015 06:32:42 +0000 (17:32 +1100)
committerMyles Borins <mborins@us.ibm.com>
Tue, 19 Jan 2016 19:52:35 +0000 (11:52 -0800)
commitc24fa1437c4b7c25e95fc94b91ac1f197b1835d8
tree544b3dac3174eb4e14ab0d9d2ca5fca51aae0f1a
parent7dc90e9e7f215dcafb4c241c3cbfec8bd4d0b99a
test: inherit JOBS from environment

In some virtualized environments the amount of available resources
are misleading; for instance `multiprocessing.cpu_count()` on our current
4-core smartos vm's returns `48`. This is not a bug, merely how the vm
host provides information about available hardware.

Avoid running into issues by overriding `cpu_count()` with `JOBS`.

PR-URL: https://github.com/nodejs/node/pull/4495
Reviewed-By: Brian White <mscdex@mscdex.net>
tools/test.py