tests: fix checking exit code

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
This commit is contained in:
Marek Marczykowski-Górecki 2017-06-21 00:13:23 +02:00
parent 72240c13b6
commit a0f616f14e
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -315,7 +315,7 @@ class TC_00_AppVMMixin(qubes.tests.SystemTestsMixin):
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")