mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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>
This commit is contained in:
@@ -16,6 +16,7 @@ class RpmBasicTest(OERuntimeTestCase):
|
|||||||
cls.skipTest('Tests require image to be build from rpm')
|
cls.skipTest('Tests require image to be build from rpm')
|
||||||
|
|
||||||
@OETestID(960)
|
@OETestID(960)
|
||||||
|
@OEHasPackage(['rpm'])
|
||||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||||
def test_rpm_help(self):
|
def test_rpm_help(self):
|
||||||
status, output = self.target.run('rpm --help')
|
status, output = self.target.run('rpm --help')
|
||||||
|
|||||||
Reference in New Issue
Block a user