virgl/ci: Wait a bit before shutting the VM down
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 6 Aug 2021 08:28:36 +0000 (10:28 +0200)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Tue, 10 Aug 2021 07:49:35 +0000 (09:49 +0200)
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>

.gitlab-ci/crosvm-init.sh

index d0fd342..63124fe 100755 (executable)
@@ -18,6 +18,8 @@ if sh $CROSVM_TEST_SCRIPT; then
     touch /results/success
 fi
 
+sleep 5   # Leave some time to get the last output flushed out
+
 poweroff -d -n -f || true
 
 sleep 10   # Just in case init would exit before the kernel shuts down the VM