tests/kvm/virtme-runner: Add more logging

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2561>
This commit is contained in:
Jonas Ådahl 2022-08-09 00:49:30 +02:00
parent d9030e02d1
commit 9c1cd66d41

View File

@ -36,6 +36,7 @@ SCRIPT="\
$(printf "\"%s\" " "${@:6}")\
"
echo Running tests in virtual machine ...
virtme-run \
--memory=256M \
--rw \
@ -43,8 +44,16 @@ virtme-run \
--kimg "$IMAGE" \
--script-sh "sh -c \"$SCRIPT\"" \
--qemu-opts -cpu host,pdcm=off -smp 2
VM_RESULT=$?
if [ $VM_RESULT != 0 ]; then
echo Virtual machine exited with a failure: $VM_RESULT
else
echo Virtual machine terminated.
fi
TEST_RESULT="$(cat "$TEST_RESULT_FILE")"
rm "$TEST_RESULT_FILE"
echo Test result exit status: $TEST_RESULT
exit "$TEST_RESULT"