Skip to contentSkip to conversation

docker: dump 'config.log' if ./configure fails

PATCH Applied Philippe Mathieu-Daudé 2 participants 2 messages Mar 15, 2018 – Mar 16, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 docker: dump 'config.log' if ./configure fails

---
v2:
- avoid subshell using { ; } (Eric)
- use test_fail() instead of prep_fail() (Fam)

 tests/docker/common.rc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
tests/docker/common.rc +3 -1
index 7951555e3f..046f8a5921 100755
@@ -30,7 +30,9 @@ build_qemu()
                  $@"
     echo "Configure options:"
     echo $config_opts
-    $QEMU_SRC/configure $config_opts && make $MAKEFLAGS
+    $QEMU_SRC/configure $config_opts || \
+        { cat config.log && test_fail "Failed to run 'configure'"; }
+    make $MAKEFLAGS
 }
 
 test_fail()
Signature · 1 line
2.16.2
Applied
#1 lore raw
Quoted 29 lines · Philippe Mathieu-Daudé

---
v2:
- avoid subshell using { ; } (Eric)
- use test_fail() instead of prep_fail() (Fam)

 tests/docker/common.rc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
tests/docker/common.rc +3 -1
index 7951555e3f..046f8a5921 100755
@@ -30,7 +30,9 @@ build_qemu()
                  $@"
     echo "Configure options:"
     echo $config_opts
-    $QEMU_SRC/configure $config_opts && make $MAKEFLAGS
+    $QEMU_SRC/configure $config_opts || \
+        { cat config.log && test_fail "Failed to run 'configure'"; }
+    make $MAKEFLAGS
 }
 
 test_fail()
Signature · 1 line
2.16.2

Queued, thanks!

Fam