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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux