Skip to content

Commit

Permalink
qubes/tests/integ/vm_qrexec_gui: some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
woju authored and marmarek committed Jun 20, 2017
1 parent 0c0b0ea commit 139f18f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions qubes/tests/integ/vm_qrexec_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,11 @@ def test_010_run_xterm(self):
"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")
Expand Down Expand Up @@ -151,8 +154,11 @@ def test_011_run_gnome_terminal(self):
"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")
Expand Down

0 comments on commit 139f18f

Please sign in to comment.