tests: fix test_053_qrexec_vm_service_eof_reverse

and not mark it as expected failure anymore. Note the removal of the
expected failure isn't just about the changes here, but also about the
actual fix on the qrexec side (ffafd01 "Fix not closed file descriptors in
qubes-rpc-multiplexer" commit in core-qrexec repository).
This commit is contained in:
Marek Marczykowski-Górecki 2020-03-15 02:55:18 +01:00
parent 5423ead27a
commit f62a861140
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -260,7 +260,6 @@ class TC_00_AppVMMixin(object):
self.assertEqual(stdout, b'test\n',
'Received data differs from what was expected')
@unittest.expectedFailure
def test_053_qrexec_vm_service_eof_reverse(self):
"""Test for EOF transmission VM(src)<-VM(dst)"""
@ -268,6 +267,7 @@ class TC_00_AppVMMixin(object):
self.testvm1.start(),
self.testvm2.start()]))
self.create_remote_file(self.testvm2, '/etc/qubes-rpc/test.EOF',
'#!/bin/sh\n'
'echo test; exec >&-; cat >/dev/null')
with self.qrexec_policy('test.EOF', self.testvm1, self.testvm2):
@ -284,7 +284,7 @@ class TC_00_AppVMMixin(object):
except asyncio.TimeoutError:
self.fail("Timeout, probably EOF wasn't transferred")
self.assertEqual(stdout, b'test',
self.assertEqual(stdout, b'test\n',
'Received data differs from what was expected')
def test_055_qrexec_dom0_service_abort(self):