Skip to contentSkip to conversation

pkgdata.py: avoid target-sdk-dummy-provides to mess things up

PATCH Superseded Chen Qi 2 participants 3 messages Jan 29, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

cover pkgdata.py: avoid target-sdk-dummy-provides to mess things up

*** BLURB HERE ***
The following changes since commit ecfe26834922861ab69602b8c1aa404080f0fb0c:

libtool: Fix ignoring compiler-rt libs (2019-01-27 13:05:17 +0000)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib ChenQi/pkgdata-clean
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/pkgdata-clean

Chen Qi (1):
pkgdata.py: avoid target-sdk-dummy-provides to mess things up

 meta/lib/oeqa/selftest/cases/pkgdata.py | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/1 pkgdata.py: avoid target-sdk-dummy-provides to mess things up

Sometimes we meet the following failure for the test_lookup_recipe test case.

AssertionError: 'zlib\nbusybox is in the RPROVIDES of target-sdk-provid[32 chars]ummy' != 'zlib\nbusybox'
zlib
+ busybox- busybox is in the RPROVIDES of target-sdk-provides-dummy:
- target-sdk-provides-dummy

This is because target-sdk-provides-dummy rprovides busybox.

So clean things up to avoid failure.

---
 meta/lib/oeqa/selftest/cases/pkgdata.py | 1 +
 1 file changed, 1 insertion(+)
meta/lib/oeqa/selftest/cases/pkgdata.py +1 -0
index 0b4caf1..e02c6c4 100644
@@ -13,6 +13,7 @@ class OePkgdataUtilTests(OESelftestTestCase):
         super(OePkgdataUtilTests, cls).setUpClass()
         # Ensure we have the right data in pkgdata
         cls.logger.info('Running bitbake to generate pkgdata')
+        bitbake('target-sdk-provides-dummy -c cleansstate')
         bitbake('busybox zlib m4')
 
     @OETestID(1203)
Signature · 1 line
1.9.1
#2 lore raw
Quoted 25 lines · Chen Qi

Sometimes we meet the following failure for the test_lookup_recipe test case.

AssertionError: 'zlib\nbusybox is in the RPROVIDES of target-sdk-
provid[32 chars]ummy' != 'zlib\nbusybox'
zlib
+ busybox- busybox is in the RPROVIDES of target-sdk-provides-
dummy:
- target-sdk-provides-dummy

This is because target-sdk-provides-dummy rprovides busybox.

So clean things up to avoid failure.

---
 meta/lib/oeqa/selftest/cases/pkgdata.py | 1 +
 1 file changed, 1 insertion(+)
meta/lib/oeqa/selftest/cases/pkgdata.py +0 -0
index 0b4caf1..e02c6c4 100644

meta/lib/oeqa/selftest/cases/pkgdata.py class OePkgdataUtilTests(OESelftestTestCase): · line 17

Quoted 5 lines
meta/lib/oeqa/selftest/cases/pkgdata.py +1 -0
@@ -13,6 +13,7 @@ class OePkgdataUtilTests(OESelftestTestCase):
         super(OePkgdataUtilTests, cls).setUpClass()
         # Ensure we have the right data in pkgdata
         cls.logger.info('Running bitbake to generate pkgdata')
+        bitbake('target-sdk-provides-dummy -c cleansstate')
         bitbake('busybox zlib m4')

Nice debugging!

clean is enough here, we don't want to run cleansstate on what might be a shared sstate cache though.

Cheers,

Richard