tests: skip the other img converter test test too

if qubes-img-converter is not installed
This commit is contained in:
Marek Marczykowski-Górecki 2018-10-26 01:41:56 +02:00
parent 4bfd10baaa
commit b2fb1b3364
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -86,6 +86,8 @@ class TC_00_ImgConverter(qubes.tests.extra.ExtraTestCase):
'"trusted with spaces.png" 2>&1', '"trusted with spaces.png" 2>&1',
passio_popen=True) passio_popen=True)
(stdout, _) = p.communicate() (stdout, _) = p.communicate()
if p.returncode == 127:
self.skipTest('qubes-img-converter not installed')
self.assertEquals(p.returncode, 0, 'qvm-convert-img failed: {}'.format( self.assertEquals(p.returncode, 0, 'qvm-convert-img failed: {}'.format(
stdout)) stdout))
self.assertCorrectlyTransformed( self.assertCorrectlyTransformed(