Skip to contentSkip to conversation

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

PATCH New Chen Qi 1 participant 2 messages Jan 30, 2019

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

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

Changes in V2:
* Use 'clean' instead of 'cleansstate'

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 v2 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..9911765 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 clean')
         bitbake('busybox zlib m4')
 
     @OETestID(1203)
Signature · 1 line
1.9.1