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")
|
"termination")
|
||||||
self.loop.run_until_complete(asyncio.sleep(0.1))
|
self.loop.run_until_complete(asyncio.sleep(0.1))
|
||||||
finally:
|
finally:
|
||||||
p.terminate()
|
try:
|
||||||
self.loop.run_until_complete(p.wait())
|
p.terminate()
|
||||||
|
self.loop.run_until_complete(p.wait())
|
||||||
|
except ProcessLookupError: # already dead
|
||||||
|
pass
|
||||||
|
|
||||||
@unittest.skipUnless(spawn.find_executable('xdotool'),
|
@unittest.skipUnless(spawn.find_executable('xdotool'),
|
||||||
"xdotool not installed")
|
"xdotool not installed")
|
||||||
@ -151,8 +154,11 @@ class TC_00_AppVMMixin(qubes.tests.SystemTestsMixin):
|
|||||||
"termination")
|
"termination")
|
||||||
self.loop.run_until_complete(asyncio.sleep(0.1))
|
self.loop.run_until_complete(asyncio.sleep(0.1))
|
||||||
finally:
|
finally:
|
||||||
p.terminate()
|
try:
|
||||||
self.loop.run_until_complete(p.wait())
|
p.terminate()
|
||||||
|
self.loop.run_until_complete(p.wait())
|
||||||
|
except ProcessLookupError: # already dead
|
||||||
|
pass
|
||||||
|
|
||||||
@unittest.skipUnless(spawn.find_executable('xdotool'),
|
@unittest.skipUnless(spawn.find_executable('xdotool'),
|
||||||
"xdotool not installed")
|
"xdotool not installed")
|
||||||
|
Loading…
Reference in New Issue
Block a user