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>
master
Philippe Mathieu-Daudé 2018-03-15 15:27:13 +01:00 committed by Fam Zheng
parent 08e173f294
commit 0c153b4c6f
1 changed files with 3 additions and 1 deletions

View File

@ -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()