diff --git a/tests/dom0_update.py b/tests/dom0_update.py index cb294224..12fcc95d 100644 --- a/tests/dom0_update.py +++ b/tests/dom0_update.py @@ -179,8 +179,12 @@ Test package p.stdin.close() p.wait() retcode = self.updatevm.run('cd /tmp/repo; createrepo .', wait=True) - if retcode != 0: - raise RuntimeError("createrepo failed, cannot perform test") + if retcode == 127: + self.skipTest("createrepo not installed in template {}".format( + self.template)) + elif retcode != 0: + self.skipTest("createrepo failed with code {}, cannot perform the " + "test".format(retcode)) def test_000_update(self): filename = self.create_pkg(self.tmpdir, self.pkg_name, '1.0')