summaryrefslogtreecommitdiffstats
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-06-04 15:15:00 +0100
commitb60954ca5fb888596bd86019fe07adf22f3a943a (patch)
treeef61e15c77bf4b3f035691c24d8cc438e4d429b6
parent395108faaca97bb18af5e73f7b84228e518ff8ee (diff)
downloadpoky-b60954ca5fb888596bd86019fe07adf22f3a943a.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) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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')