提交 38e6696f 编写于 作者: L Lukáš Doktor 提交者: Lucas Meneghel Rodrigues

kvm.virtio_console: FIX delete_guest_script must kill python

On linux guest the guest_worker runs as a daemon so we have to
also kill the worker and remove it's pipes. Otherwise the new
instance would only connect to the old running version.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 c18a049a
......@@ -1334,6 +1334,8 @@ def run_virtio_console(test, params, env):
session = vm.wait_for_login()
out = session.cmd_output("echo on")
if "on" in out: # Linux
session.cmd_status("killall python")
session.cmd_status("rm -f /tmp/guest_daemon_*")
session.cmd_status("rm -f /tmp/virtio_console_guest.py*")
else: # Windows
session.cmd_status("del /F /Q C:\\virtio_console_guest.py*")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册