* [PATCH 0/2] fixes for lib32-image -ctestimage
@ 2017-11-14 7:57 Robert Yang
2017-11-14 7:57 ` [PATCH 1/2] oeqa: make OEHasPackage() check multilib package Robert Yang
2017-11-14 7:57 ` [PATCH 2/2] oeqa/dnf.py/rpm.py: add MLPREFIX to package name Robert Yang
0 siblings, 2 replies; 3+ messages in thread
From: Robert Yang @ 2017-11-14 7:57 UTC (permalink / raw)
To: openembedded-core
The following changes since commit a17f3ec910366e9e7551fa24fbc07929b9584341:
dhcp: fix build issue with libxml2 support (2017-11-10 14:44:31 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib rbt/mlqa
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/mlqa
Robert Yang (2):
oeqa: make OEHasPackage() check multilib package
oeqa/dnf.py/rpm.py: add MLPREFIX to package name
meta/lib/oeqa/runtime/cases/dnf.py | 4 ++--
meta/lib/oeqa/runtime/cases/rpm.py | 2 +-
meta/lib/oeqa/runtime/decorator/package.py | 13 +++++++++++--
3 files changed, 14 insertions(+), 5 deletions(-)
--
2.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] oeqa: make OEHasPackage() check multilib package
2017-11-14 7:57 [PATCH 0/2] fixes for lib32-image -ctestimage Robert Yang
@ 2017-11-14 7:57 ` Robert Yang
2017-11-14 7:57 ` [PATCH 2/2] oeqa/dnf.py/rpm.py: add MLPREFIX to package name Robert Yang
1 sibling, 0 replies; 3+ messages in thread
From: Robert Yang @ 2017-11-14 7:57 UTC (permalink / raw)
To: openembedded-core
Make OEHasPackage() check multilib package when test multilib image, for
example, OEHasPackage(['dnf']) should check lib32-dnf when test
lib32-core-image-sato, this can make
"bitbake lib32-core-image-sato -ctestimage" work, otherwise the testcases
would be skipped.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
meta/lib/oeqa/runtime/decorator/package.py | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/meta/lib/oeqa/runtime/decorator/package.py b/meta/lib/oeqa/runtime/decorator/package.py
index aa6ecb6..1a8bc00 100644
--- a/meta/lib/oeqa/runtime/decorator/package.py
+++ b/meta/lib/oeqa/runtime/decorator/package.py
@@ -32,11 +32,20 @@ class OEHasPackage(OETestDecorator):
need_pkgs = set()
unneed_pkgs = set()
pkgs = strToSet(self.need_pkgs)
+ # Conver to multilib
+ mlprefix = self.case.tc.td['MLPREFIX']
for pkg in pkgs:
if pkg.startswith('!'):
- unneed_pkgs.add(pkg[1:])
+ pkg_name = pkg[1:]
+ if mlprefix and not pkg_name.startswith(mlprefix):
+ unneed_pkgs.add('%s%s' % (mlprefix, pkg_name))
+ else:
+ unneed_pkgs.add(pkg_name)
else:
- need_pkgs.add(pkg)
+ if mlprefix and not pkg.startswith(mlprefix):
+ need_pkgs.add('%s%s' % (mlprefix, pkg))
+ else:
+ need_pkgs.add(pkg)
if unneed_pkgs:
msg = 'Checking if %s is not installed' % ', '.join(unneed_pkgs)
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH 2/2] oeqa/dnf.py/rpm.py: add MLPREFIX to package name
2017-11-14 7:57 [PATCH 0/2] fixes for lib32-image -ctestimage Robert Yang
2017-11-14 7:57 ` [PATCH 1/2] oeqa: make OEHasPackage() check multilib package Robert Yang
@ 2017-11-14 7:57 ` Robert Yang
1 sibling, 0 replies; 3+ messages in thread
From: Robert Yang @ 2017-11-14 7:57 UTC (permalink / raw)
To: openembedded-core
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>
---
meta/lib/oeqa/runtime/cases/dnf.py | 4 ++--
meta/lib/oeqa/runtime/cases/rpm.py | 2 +-
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 2f87296..7912ad2 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 05b94c7..137739d 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)
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-11-14 7:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-14 7:57 [PATCH 0/2] fixes for lib32-image -ctestimage Robert Yang
2017-11-14 7:57 ` [PATCH 1/2] oeqa: make OEHasPackage() check multilib package Robert Yang
2017-11-14 7:57 ` [PATCH 2/2] oeqa/dnf.py/rpm.py: add MLPREFIX to package name Robert Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox