From 0a2723e35d488243a480207e302884f76c58cc17 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Mon, 5 Sep 2022 11:01:00 +0200 Subject: [PATCH] ci: Make sure that the Crosvm control socket has been removed To avoid Crosvm bailing out at startup like this: ERROR - dEQP error: [ERROR:src/main.rs:2826] invalid value "crosvm-14.sock": this socket path already exists Closes: #7093 Reviewed-by: David Heidelberg Part-of: --- .gitlab-ci/crosvm-runner.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/crosvm-runner.sh b/.gitlab-ci/crosvm-runner.sh index 0acd7d77127..f88bab08303 100755 --- a/.gitlab-ci/crosvm-runner.sh +++ b/.gitlab-ci/crosvm-runner.sh @@ -55,8 +55,12 @@ VM_SOCKET=crosvm-${THREAD}.sock # without cleaning itself up. if [ -e $VM_SOCKET ]; then crosvm stop $VM_SOCKET || rm -rf $VM_SOCKET + # Wait for Crosvm to have removed the socket + until [ ! -f $VM_SOCKET ]; do + sleep 1 + done # Wait for socats from that invocation to drain - sleep 5 + sleep 4 fi set_vsock_context || { echo "Could not generate crosvm vsock CID" >&2; exit 1; }