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>
@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)
@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)