summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2018-06-01 13:03:06 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-02 11:41:25 +0100
commit6af590bd29d5b10efc41347ebfc367eb8559ef66 (patch)
treec0327275857b8d6f341e57d6c18b18b09bd0e211 /meta
parentd83cda97dfc66e8c69e6bb23edad100a7cb43bf3 (diff)
downloadpoky-6af590bd29d5b10efc41347ebfc367eb8559ef66.tar.gz
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 (From OE-Core rev: bb909a60c04248d015d988e4454f0a11b1c287da) (From OE-Core rev: 520c375d49df29453213c3cd4e2155e80e27a0ca) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/runtime/cases/rpm.py1
1 files changed, 1 insertions, 0 deletions
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):
16 cls.skipTest('Tests require image to be build from rpm') 16 cls.skipTest('Tests require image to be build from rpm')
17 17
18 @OETestID(960) 18 @OETestID(960)
19 @OEHasPackage(['rpm'])
19 @OETestDepends(['ssh.SSHTest.test_ssh']) 20 @OETestDepends(['ssh.SSHTest.test_ssh'])
20 def test_rpm_help(self): 21 def test_rpm_help(self):
21 status, output = self.target.run('rpm --help') 22 status, output = self.target.run('rpm --help')