tests/qvm-device: tolerate different 'column' tool versions

Newer one do output column even if empty, but older one (in Travis-CI
env) do not. Ignore trailing spaces to work with both version.
This commit is contained in:
Marek Marczykowski-Górecki 2016-09-13 02:01:22 +02:00
parent 141128e768
commit 9ae3dc2ebf
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -63,9 +63,9 @@ class TC_00_Actions(qubes.tests.QubesTestCase):
self.assertEventNotFired(self.vm2,
'device-list-attached:testclass')
self.assertEqual(
buf.getvalue(),
'vm1:testdev Description \n'
'vm2:testdev Description \n'
[x.rstrip() for x in buf.getvalue().splitlines()],
['vm1:testdev Description',
'vm2:testdev Description']
)
def test_001_list_one(self):