From: Chen Qi Date: Fri, 1 Jun 2018 05:03:06 +0000 (+0800) Subject: oeqa/runtime/cases/rpm.py: skip if rpm not available X-Git-Tag: uninative-2.1~54 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=bb909a60c04248d015d988e4454f0a11b1c287da;p=openembedded-core.git oeqa/runtime/cases/rpm.py: skip if rpm not available This test case should only run when rpm package is installed. So skip it if rpm package is not installed. This fixes: RESULTS - rpm.RpmBasicTest.test_rpm_help - Testcase 1059: FAILED Signed-off-by: Chen Qi Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/runtime/cases/rpm.py b/meta/lib/oeqa/runtime/cases/rpm.py index 05b94c7b40..84c59a614e 100644 --- a/meta/lib/oeqa/runtime/cases/rpm.py +++ b/meta/lib/oeqa/runtime/cases/rpm.py @@ -16,6 +16,7 @@ class RpmBasicTest(OERuntimeTestCase): cls.skipTest('Tests require image to be build from rpm') @OETestID(960) + @OEHasPackage(['rpm']) @OETestDepends(['ssh.SSHTest.test_ssh']) def test_rpm_help(self): status, output = self.target.run('rpm --help')