qubes/tests/integ/vm_qrexec_gui: some fixes

This commit is contained in:
Wojtek Porczyk 2017-06-06 17:34:05 +02:00 committed by Marek Marczykowski-Górecki
parent 0c0b0ea6ef
commit 139f18fa1d
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -111,8 +111,11 @@ class TC_00_AppVMMixin(qubes.tests.SystemTestsMixin):
"termination")
self.loop.run_until_complete(asyncio.sleep(0.1))
finally:
try:
p.terminate()
self.loop.run_until_complete(p.wait())
except ProcessLookupError: # already dead
pass
@unittest.skipUnless(spawn.find_executable('xdotool'),
"xdotool not installed")
@ -151,8 +154,11 @@ class TC_00_AppVMMixin(qubes.tests.SystemTestsMixin):
"termination")
self.loop.run_until_complete(asyncio.sleep(0.1))
finally:
try:
p.terminate()
self.loop.run_until_complete(p.wait())
except ProcessLookupError: # already dead
pass
@unittest.skipUnless(spawn.find_executable('xdotool'),
"xdotool not installed")