Kill test suite's virt-viewer properly
Originally created by @anonym on #9070 (Redmine)
From features/support/helpers/display_helper.rb
:
def start_virtviewer(domain)
# virt-viewer forks, so we cannot (easily) get the child pid
# and use it in active? and stop_virtviewer below...
IO.popen(["virt-viewer", "-d",
"-f",
"-r",
"-c", "qemu:///system",
["--display=", @x_display].join(''),
domain,
"&"].join(' '))
But actually, virt-viewer
isn’t forking…. notice the &
in the
command. Gah!
Feature Branch: test/9070-kill-virt-viewer-properly
Edited by anonym