qubes/tests/integ/vm_qrexec_gui: some fixes
This commit is contained in:
parent
0c0b0ea6ef
commit
139f18fa1d
@ -111,8 +111,11 @@ class TC_00_AppVMMixin(qubes.tests.SystemTestsMixin):
|
||||
"termination")
|
||||
self.loop.run_until_complete(asyncio.sleep(0.1))
|
||||
finally:
|
||||
p.terminate()
|
||||
self.loop.run_until_complete(p.wait())
|
||||
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:
|
||||
p.terminate()
|
||||
self.loop.run_until_complete(p.wait())
|
||||
try:
|
||||
p.terminate()
|
||||
self.loop.run_until_complete(p.wait())
|
||||
except ProcessLookupError: # already dead
|
||||
pass
|
||||
|
||||
@unittest.skipUnless(spawn.find_executable('xdotool'),
|
||||
"xdotool not installed")
|
||||
|
Loading…
Reference in New Issue
Block a user