aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-11-14 02:01:25 +0800
committerRobert Yang <liezhi.yang@windriver.com>2017-11-14 15:55:48 +0800
commite08be83f151efe716d5b23197105b893b71a2fd5 (patch)
tree722ca816ab5e5a2968d066d028dee05e157982a0
parent480b881c0ad08618fbc5e9d9d0de4bf6da5dc26d (diff)
downloadopenembedded-core-contrib-rbt/mlqa.tar.gz
oeqa/dnf.py/rpm.py: add MLPREFIX to package namerbt/mlqa
The package name is lib32-foo (e.g., lib32-dnf) when run "bitbake lib32-core-image-sato -ctestimage", add MLPREFIX to package name can fix the problem, otherwise the test cases would be failed. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
-rw-r--r--meta/lib/oeqa/runtime/cases/dnf.py4
-rw-r--r--meta/lib/oeqa/runtime/cases/rpm.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/runtime/cases/dnf.py b/meta/lib/oeqa/runtime/cases/dnf.py
index 2f87296b4e..7912ad26f9 100644
--- a/meta/lib/oeqa/runtime/cases/dnf.py
+++ b/meta/lib/oeqa/runtime/cases/dnf.py
@@ -38,12 +38,12 @@ class DnfBasicTest(DnfTest):
@OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
@OETestID(1737)
def test_dnf_info(self):
- self.dnf('info dnf')
+ self.dnf('info %sdnf' % self.tc.td['MLPREFIX'])
@OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
@OETestID(1738)
def test_dnf_search(self):
- self.dnf('search dnf')
+ self.dnf('search %sdnf' % self.tc.td['MLPREFIX'])
@OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
@OETestID(1736)
diff --git a/meta/lib/oeqa/runtime/cases/rpm.py b/meta/lib/oeqa/runtime/cases/rpm.py
index 05b94c7b40..137739de6d 100644
--- a/meta/lib/oeqa/runtime/cases/rpm.py
+++ b/meta/lib/oeqa/runtime/cases/rpm.py
@@ -25,7 +25,7 @@ class RpmBasicTest(OERuntimeTestCase):
@OETestID(191)
@OETestDepends(['rpm.RpmBasicTest.test_rpm_help'])
def test_rpm_query(self):
- status, output = self.target.run('rpm -q rpm')
+ status, output = self.target.run('rpm -q %srpm' % self.tc.td['MLPREFIX'])
msg = 'status and output: %s and %s' % (status, output)
self.assertEqual(status, 0, msg=msg)