Skip to content

Commit acd5285

Browse files
committed
test(vsock): wait before exit-ing in check_guest_connections
Even if one child process failed, still call `wait` to ensure all other child vsock_helper processes also exit, to ensure clean socket teardown/etc. Signed-off-by: Patrick Roy <[email protected]>
1 parent 5db842f commit acd5285

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/framework/utils_vsock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def check_guest_connections(vm, server_port_path, blob_path, blob_hash):
180180
cmd += " ({})& ".format(worker_cmd)
181181
cmd += ' workers="$workers $!";'
182182
cmd += "done;"
183-
cmd += "for w in $workers; do wait $w || exit 1; done"
183+
cmd += "for w in $workers; do wait $w || (wait; exit 1); done"
184184

185185
ecode, _, stderr = vm.ssh.run(cmd)
186186
echo_server.terminate()

0 commit comments

Comments
 (0)