|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v1 5/5] automation/scripts/build: group command output from parallel jobs
Whenever 'make -j' is used, '-O' should be used too.
This ensures that output from parallel invocations of the compiler or
tests do not mix with each-other.
The downside is that make has to buffer the output and will only print
it when the command completes, which can add a noticable delay during
local development, but should have no impact on the CI.
Signed-off-by: Edwin Török <edwin.torok@xxxxxxxxxx>
---
automation/scripts/build | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/automation/scripts/build b/automation/scripts/build
index 26ffdf3350..e30ac24e46 100755
--- a/automation/scripts/build
+++ b/automation/scripts/build
@@ -19,7 +19,7 @@ if [[ "${RANDCONFIG}" == "y" ]]; then
# Append job-specific fixed configuration
echo "${EXTRA_FIXED_RANDCONFIG}" >> xen/allrandom.config.tmp
- make -j$(nproc) -C xen KCONFIG_ALLCONFIG=allrandom.config.tmp randconfig
+ make -j$(nproc) -O -C xen KCONFIG_ALLCONFIG=allrandom.config.tmp randconfig
# RANDCONFIG implies HYPERVISOR_ONLY
HYPERVISOR_ONLY="y"
@@ -34,7 +34,7 @@ else
echo "${EXTRA_XEN_CONFIG}" >> xen/.config
fi
- make -j$(nproc) -C xen olddefconfig
+ make -j$(nproc) -O -C xen olddefconfig
fi
# Save the config file before building because build failure causes the script
@@ -64,7 +64,7 @@ if [[ "${CPPCHECK}" == "y" ]] && [[ "${HYPERVISOR_ONLY}" ==
"y" ]]; then
cp xen/cppcheck-report/xen-cppcheck.txt xen-cppcheck.txt
elif [[ "${HYPERVISOR_ONLY}" == "y" ]]; then
# Xen-only build
- make -j$(nproc) xen
+ make -j$(nproc) -O xen
# Preserve artefacts
collect_xen_artefacts
@@ -105,9 +105,9 @@ else
fi
./configure "${cfgargs[@]}"
- make -j$(nproc) dist
+ make -j$(nproc) -O dist
- make -j$(nproc) check
+ make -j$(nproc) -O check
# Preserve artefacts
# Note: Some smoke tests depending on finding binaries/xen on a full build
--
2.47.3
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |