uvms: do not rm vsock.sock until vmm is down
This commit is contained in:
parent
0692a20ae9
commit
90614bdf74
1 changed files with 2 additions and 1 deletions
|
|
@ -464,7 +464,7 @@ def connect_ch_vsock(
|
||||||
s.setblocking(blocking)
|
s.setblocking(blocking)
|
||||||
s.connect(vsock_sock_path)
|
s.connect(vsock_sock_path)
|
||||||
|
|
||||||
with removing(vsock_sock_path):
|
with closing(s):
|
||||||
s.send(b"CONNECT %d\n" % port)
|
s.send(b"CONNECT %d\n" % port)
|
||||||
yield s
|
yield s
|
||||||
|
|
||||||
|
|
@ -662,6 +662,7 @@ def main(args, args_next, cleanup, ps):
|
||||||
|
|
||||||
assert ready
|
assert ready
|
||||||
|
|
||||||
|
cleanup.enter_context(removing(ps.prefix + "/vsock.sock"))
|
||||||
with connect_ch_vsock(ps.prefix + "/vsock.sock", 24601) as guest:
|
with connect_ch_vsock(ps.prefix + "/vsock.sock", 24601) as guest:
|
||||||
for r in args.run:
|
for r in args.run:
|
||||||
res = {}
|
res = {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue