automation: save xen config before building
PATCH 1/1 automation: save xen config before building
It is reported that failed randconfig runs are missing the config file which makes debugging impossible. Fix this by moving the line that copies the config file before the build is executed.
Signed-off-by Wei Liu <[email protected]>
--- automation/scripts/build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
automation/scripts/build +4 -1
@@ -16,6 +16,10 @@ else make -j$(nproc) -C xen defconfig fi +# Save the config file before building because build failure causes the script +# to exit early -- bash is invoked with -e. +cp xen/.config xen-config + # arm32 only cross-compiles the hypervisor if [[ "${XEN_TARGET_ARCH}" = "arm32" ]]; then hypervisor_only="y"
@@ -59,7 +63,6 @@ else fi # Extract artifacts to avoid getting rewritten by customised builds -cp xen/.config xen-config mkdir binaries if [[ "${XEN_TARGET_ARCH}" != "x86_32" ]]; then cp xen/xen binaries/xen
Signature · 1 line
2.30.2
Quoted 5 lines · Wei Liu
It is reported that failed randconfig runs are missing the config file which makes debugging impossible. Fix this by moving the line that copies the config file before the build is executed.
Signed-off-by Wei Liu <[email protected]>
Acked-by Roger Pau Monné <[email protected]>
Thanks!
Quoted 8 lines · Roger Pau Monné
Quoted 5 lines · Wei Liu
It is reported that failed randconfig runs are missing the config file which makes debugging impossible. Fix this by moving the line that copies the config file before the build is executed.
Signed-off-by Wei Liu <[email protected]>Acked-by Roger Pau Monné <[email protected]>
A patchew run shows this indeed fixes the issue. I've pushed this to staging.
Wei.
Quoted 2 lines
Thanks!