Commit 10b1809b authored by Peter Hutterer's avatar Peter Hutterer
Browse files

bootstrap: dump the console.out file on VM connection failure



Of course this requires us to not immediately fail when any command fails.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 370f2a05
......@@ -18,6 +18,7 @@ do_start() {
xz -d -T0 /app/image.raw.xz || (echo "Failed to unpack image" && exit 1)
fi
set +e
qemu-system-x86_64 -machine accel=kvm \
-smp 2 -m 1024 \
-drive format=raw,file=/app/image.raw \
......@@ -45,6 +46,13 @@ EOF
fi
if [[ $exit_code -ne 0 ]]; then
echo "***********************************************************"
echo "* *"
echo "* WARNING: failed to start or connect to VM *"
echo "* Serial console output is below *"
echo "* *"
echo "***********************************************************"
cat $CI_BUILDS_DIR/$CI_PROJECT_PATH/console.out
echo "***********************************************************"
echo "* *"
echo "* WARNING: failed to start or connect to VM *"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment