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:
parent
72240c13b6
commit
a0f616f14e
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user