mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
tests/kvm/virtme-runner: Add more logging
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2561>
This commit is contained in:
parent
d9030e02d1
commit
9c1cd66d41
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user