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:
parent
141128e768
commit
9ae3dc2ebf
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user