mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 07:19:50 +00:00
ci/crosvm: clean crosvm socket
When the 'vm stop' command fails because the crosvm instance that would be listening to it is already dead, remove the socket file to avoid crosvm complaining and refusing to boot Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16963>
This commit is contained in:
parent
4480e577a4
commit
ea33e44ce4
@ -54,7 +54,7 @@ VM_SOCKET=crosvm-${THREAD}.sock
|
||||
# was terminated due to timeouts. This "vm stop" may fail if the crosvm died
|
||||
# without cleaning itself up.
|
||||
if [ -e $VM_SOCKET ]; then
|
||||
crosvm stop $VM_SOCKET || true
|
||||
crosvm stop $VM_SOCKET || rm -rf $VM_SOCKET
|
||||
# Wait for socats from that invocation to drain
|
||||
sleep 5
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user