Skip to content

Commit

Permalink
tests: fix checking exit code
Browse files Browse the repository at this point in the history
Since run_for_stdio raise an exception for non-zero exit code, it isn't
ignored anymore. So, check if qrexec-client-vm return expected value,
instead of keep ignoring it.

QubesOS/qubes-issues#2861
  • Loading branch information
marmarek committed Jun 20, 2017
1 parent 72240c1 commit a0f616f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubes/tests/integ/vm_qrexec_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def test_055_qrexec_dom0_service_abort(self):
stdout, _ = self.loop.run_until_complete(asyncio.wait_for(
self.testvm1.run_for_stdio('''\
/usr/lib/qubes/qrexec-client-vm dom0 test.Abort \
/bin/cat /dev/zero'''),
/bin/cat /dev/zero; test $? -eq 141'''),
timeout=10))
except asyncio.TimeoutError:
self.fail("Timeout, probably stdout wasn't closed")
Expand Down

0 comments on commit a0f616f

Please sign in to comment.