Bug 10903

Summary: test_recipetool_create_git fails on poky-distro due to x11 feature requirement
Product: [QA/Testing] Build Testing Reporter: Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez>
Component: generalAssignee: Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: benjamin.esquivel, bluelightning
Version: 2.3   
Target Milestone: 2.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Proposed patch none

Description Leonardo Sandoval Gonzalez 2017-01-09 17:19:42 UTC
The below test fails when DISTRO='poky-tiny' and the reason is that the bitbake target on that check requires a feature (x11) that the distro does not have. Either we skip it or use a more generic target: 

FAIL [9.173s]: test_recipetool_create_git (oeqa.selftest.recipetool.RecipetoolTests)
Comment 1 Leonardo Sandoval Gonzalez 2017-01-09 17:23:10 UTC
Created attachment 3592 [details]
Proposed patch

This  patch is not completed but can help as a start. It is failing with the following error:

FAIL [9.173s]: test_recipetool_create_git (oeqa.selftest.recipetool.RecipetoolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-poky-tiny/build/meta/lib/oeqa/utils/decorators.py", line 109, in wrapped_f
    return func(*args, **kwargs)
  File "/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-poky-tiny/build/meta/lib/oeqa/selftest/recipetool.py", line 393, in test_recipetool_create_git
    result = runCmd(['recipetool', 'create', '-o', recipefile, srcuri + ";rev=a2277e9f8ca0b4562a42ce3476adf8be71886571", '-x', tempsrc])
  File "/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-poky-tiny/build/meta/lib/oeqa/utils/commands.py", line 121, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, result.output))
AssertionError: Command '['recipetool', 'create', '-o', '/tmp/recipetoolqacfbmh7s3/mraa.bb', 'git://git.yoctoproject.org/mraa;rev=a2277e9f8ca0b4562a42ce3476adf8be71886571', '-x', '/tmp/recipetoolqacfbmh7s3/srctree']' returned non-zero exit status 1:
NOTE: Fetching git://git.yoctoproject.org/mraa...
--2017-01-06 14:37:43--  http://downloads.yoctoproject.org/mirror/sources/git2_git.yoctoproject.org.mraa.tar.gz
Connecting to 192.168.15.1:9111... connected.
Proxy request sent, awaiting response... 404 Not Found
2017-01-06 14:37:43 ERROR 404: Not Found.

--2017-01-06 14:37:43--  http://sources.openembedded.org/git2_git.yoctoproject.org.mraa.tar.gz
Connecting to 192.168.15.1:9111... connected.
Proxy request sent, awaiting response... 404 Not Found
2017-01-06 14:37:43 ERROR 404: Not Found.

ERROR: Fetcher failure for URL: 'git://git.yoctoproject.org/mraa;rev=a2277e9f8ca0b4562a42ce3476adf8be71886571'. Unable to fetch URL from any source.
Comment 2 Leonardo Sandoval Gonzalez 2017-04-06 16:43:10 UTC
Patch sent to the mailing list, tracked at
http://lists.openembedded.org/pipermail/openembedded-core/2017-April/135301.html
Comment 3 Leonardo Sandoval Gonzalez 2017-04-10 17:34:02 UTC
Patch merged into master: b79a7aff5a0f449758e6a6af12177c7e527c5c6f