[libvirt] [jenkins-ci PATCH v2 3/3] guests: Set MAKEFLAGS for out-of-the-box parallel make

Andrea Bolognani abologna at redhat.com
Tue May 15 13:23:24 UTC 2018


We know all jobs are compatible with parallel make, and
we also know exactly how many vCPUs guests have, since we
created them in the first place: that allows us to default
to parallel make instead of making it opt-in.

The main advantage of doing this is that it will make life
more convenient for developers running one-off jobs or
debugging interactively.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 guests/templates/bashrc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/guests/templates/bashrc b/guests/templates/bashrc
index 866087e..2b3542c 100644
--- a/guests/templates/bashrc
+++ b/guests/templates/bashrc
@@ -14,6 +14,8 @@ export PYTHONPATH="{{ PYTHONPATH }}"
 export MAKE="{{ make }}"
 export PYTHON="{{ python }}"
 
+export MAKEFLAGS="-j{{ install_vcpus|int + 1 }}"
+
 # Enable bash completion. Only needed on FreeBSD, the system-wide
 # shell profile will take care of it for us everywhere else
 bash_completion=/usr/local/share/bash-completion/bash_completion.sh
-- 
2.17.0




More information about the libvir-list mailing list