summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2018-03-15 15:27:13 +0100
committerFam Zheng <famz@redhat.com>2018-04-09 15:13:02 +0800
commit0c153b4c6fb4442584a7ed95a9aaced6c08ee07e (patch)
treeeadcdcb877acd5191d1d92e9c43a0937aaa24cbf /tests
parent08e173f29461396575c85510eb41474b993cb1fb (diff)
downloadqemu-0c153b4c6fb4442584a7ed95a9aaced6c08ee07e.tar.gz
docker: dump 'config.log' if ./configure fails
Suggested-by: Eric Blake <eblake@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20180315142713.30960-1-f4bug@amsat.org> Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/docker/common.rc4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/docker/common.rc b/tests/docker/common.rc
index 7951555e3f..046f8a5921 100755
--- a/tests/docker/common.rc
+++ b/tests/docker/common.rc
@@ -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()