Bug 13152

Summary: ;master-next] oe-selftest --skip-tests distrodata.Distrodata.test_checkpkg buildoptions.SourceMirroring.test_yocto_source_mirror failed
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Armin Kuster <akuster>
Component: coreAssignee: Chen Qi <Qi.Chen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher
Version: 2.7   
Target Milestone: 2.7 M3   
Hardware: x86   
OS: Multiple   
URL: http://errors.yoctoproject.org/Errors/Details/220060/
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Armin Kuster 2019-01-29 02:10:09 UTC
2019-01-29 01:20:52,424 - oe-selftest - INFO - pkgdata.OePkgdataUtilTests.test_lookup_recipe (subunit.RemotedTestCase)
2019-01-29 01:20:52,425 - oe-selftest - INFO -  ... FAIL
2019-01-29 01:20:52,425 - oe-selftest - INFO - 12: 8/21 102/338 (3.65s) (pkgdata.OePkgdataUtilTests.test_lookup_recipe)
2019-01-29 01:20:52,425 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest/build/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f
    return func(*args, **kwargs)
  File "/home/pokybuild/yocto-worker/oe-selftest/build/meta/lib/oeqa/selftest/cases/pkgdata.py", line 60, in test_lookup_recipe
    self.assertEqual(result.output, 'zlib\nbusybox')
  File "/usr/lib64/python3.4/unittest/case.py", line 838, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/lib64/python3.4/unittest/case.py", line 1211, in assertMultiLineEqual
    self.fail(self._formatMessage(msg, standardMsg))
  File "/usr/lib64/python3.4/unittest/case.py", line 683, in fail
    raise self.failureException(msg)
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


2019-01-29 01:20:59,027 - oe-selftest - INFO - pkgdata.OePkgdataUtilTests.test_read_value (subunit.RemotedTestCase)
Comment 1 Chen Qi 2019-02-01 01:44:21 UTC
  git://git.pokylinux.org/poky-contrib ChenQi/pkgdata-clean
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/pkgdata-clean
Comment 2 Chen Qi 2019-02-01 01:45:55 UTC
commit b68a42596d69b0fee1ef6f7181a823718b014094
Author: Chen Qi <Qi.Chen@windriver.com>
Date:   Wed Jan 30 10:56:24 2019 +0800

    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.
    
    (From OE-Core rev: b3001770df6640549270361bfaa449cb3e79a0b7)
    
    Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>