Repository: trafficserver-qa Updated Branches: refs/heads/master 2c0bfaf4c -> 5f3f5fb2a
Limit make -j to num CPUs Project: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/commit/7339d9e6 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/tree/7339d9e6 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/diff/7339d9e6 Branch: refs/heads/master Commit: 7339d9e68a56e520c9dcdcb8eb71f085e2530e6b Parents: 2c0bfaf Author: Thomas Jackson <[email protected]> Authored: Tue Jan 27 15:20:33 2015 -0800 Committer: Thomas Jackson <[email protected]> Committed: Tue Jan 27 15:20:33 2015 -0800 ---------------------------------------------------------------------- tsqa/environment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver-qa/blob/7339d9e6/tsqa/environment.py ---------------------------------------------------------------------- diff --git a/tsqa/environment.py b/tsqa/environment.py index 7af94bb..9e166ab 100644 --- a/tsqa/environment.py +++ b/tsqa/environment.py @@ -6,6 +6,7 @@ import shutil import tsqa.utils import sys import time +import multiprocessing import tsqa.configs import tsqa.utils @@ -146,7 +147,7 @@ class EnvironmentFactory(object): tsqa.utils.run_sync_command(args, **kwargs) # make - tsqa.utils.run_sync_command(['make', '-j'], **kwargs) + tsqa.utils.run_sync_command(['make', '-j{0}'.format(multiprocessing.cpu_count())], **kwargs) installdir = tempfile.mkdtemp(dir=self.env_cache_dir) # make install
