tests: skip img converter test if qubes-img-converter is not installed
This commit is contained in:
parent
e2d7f08d42
commit
0255f4d843
@ -74,6 +74,8 @@ class TC_00_ImgConverter(qubes.tests.extra.ExtraTestCase):
|
|||||||
p = self.vm.run('qvm-convert-img test.png trusted.png 2>&1',
|
p = self.vm.run('qvm-convert-img test.png trusted.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('test.png', 'trusted.png')
|
self.assertCorrectlyTransformed('test.png', 'trusted.png')
|
||||||
|
Loading…
Reference in New Issue
Block a user