virgl/ci: Wait a bit before shutting the VM down
Sometimes, the VM powered off before all the output from the guest got to the console. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12196>
This commit is contained in:
@@ -18,6 +18,8 @@ if sh $CROSVM_TEST_SCRIPT; then
|
|||||||
touch /results/success
|
touch /results/success
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sleep 5 # Leave some time to get the last output flushed out
|
||||||
|
|
||||||
poweroff -d -n -f || true
|
poweroff -d -n -f || true
|
||||||
|
|
||||||
sleep 10 # Just in case init would exit before the kernel shuts down the VM
|
sleep 10 # Just in case init would exit before the kernel shuts down the VM
|
||||||
|
Reference in New Issue
Block a user