Bug 10891 - Selftest test_devtool_update_recipe_local_patch_gz fails on poky-tiny distro
Summary: Selftest test_devtool_update_recipe_local_patch_gz fails on poky-tiny distro
Status: VERIFIED FIXED
Alias: None
Product: Build Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.3 M4
Assignee: Leonardo Sandoval Gonzalez
QA Contact: oscar lopez arandas
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-01-06 22:38 UTC by Leonardo Sandoval Gonzalez
Modified: 2017-04-18 16:10 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
oe-selftest (2.07 KB, application/octet-stream)
2017-04-18 16:04 UTC, oscar lopez arandas
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonardo Sandoval Gonzalez 2017-01-06 22:38:43 UTC
Running oe-selftest with poky-tiny distro, the following check fails:

----snip----
======================================================================
FAIL [4.177s]: test_devtool_update_recipe_local_patch_gz (oeqa.selftest.devtool.DevtoolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-poky-tiny/build/meta/lib/oeqa/selftest/devtool.py", line 964, in test_devtool_update_recipe_local_patch_gz
    recipefile = get_bb_var('FILE', testrecipe)
  File "/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-poky-tiny/build/meta/lib/oeqa/utils/commands.py", line 195, in get_bb_var
    return get_bb_vars([var], target, postconfig)[var]
  File "/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-poky-tiny/build/meta/lib/oeqa/utils/commands.py", line 157, in get_bb_vars
    bbenv = get_bb_env(target, postconfig=postconfig)
  File "/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-poky-tiny/build/meta/lib/oeqa/utils/commands.py", line 151, in get_bb_env
    return bitbake("-e %s" % target, postconfig=postconfig).output
  File "/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-poky-tiny/build/meta/lib/oeqa/utils/commands.py", line 143, in bitbake
    return runCmd(cmd, ignore_status, timeout, **options)
  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 'bitbake  -e devtool-test-patch-gz' returned non-zero exit status 1:
NOTE: Started PRServer with DBfile: /home/ab/autobuilder/yocto-worker/nightly-oe-selftest-poky-tiny/build/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 42072, PID: 24089
Loading cache...done.
Loaded 1320 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'libxres' (but /home/ab/autobuilder/yocto-worker/nightly-oe-selftest-poky-tiny/build/meta-selftest/recipes-test/devtool/devtool-test-patch-gz.bb DEPENDS on or otherwise requires it)
ERROR: libxres was skipped: missing required distro feature 'x11' (not in DISTRO_FEATURES)
----snip----

The reason is that the recipe being used has a x11 distro feature dependency and poky-tiny distro features does not contain the latter.
Comment 1 Leonardo Sandoval Gonzalez 2017-04-03 21:21:59 UTC
being review at

http://lists.openembedded.org/pipermail/openembedded-core/2017-April/135122.html
Comment 2 Leonardo Sandoval Gonzalez 2017-04-10 17:37:02 UTC
patch merged into master: e3c3d0956255c8ead64b180db08cf6a627d882b9
Comment 3 oscar lopez arandas 2017-04-18 16:04:01 UTC
Created attachment 3732 [details]
oe-selftest
Comment 4 oscar lopez arandas 2017-04-18 16:10:53 UTC
Running oe-selftest with poky-tiny distro, work with successfully

testimage: core-image-sato-core2-32.wic
 
Build Configuration:
BB_VERSION        = "1.33.3"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "i686-poky-linux"
MACHINE           = "intel-core2-32"
DISTRO            = "poky"
DISTRO_VERSION    = "2.2+snapshot-20170417"
TUNE_FEATURES     = "m32 core2"
COMMIT: eff56e4f0d59b1d965a68e4f009b7f07717b7edd

    STEPS:
git clone git://git.yoctoproject.org/poky"

b)In poky directory checkout on the desired commit:

$ git checkout <commit-id>

3. Source the environment, from poky directory

 $ cd ~/poky 

$ source oe-init-build-env

4. Edit local.conf. PATH
 5. In ~poky/build directory, in command line, type the following commands:

$ bitbake rpm psplash run-postinsts
$ bitbake package-index

NOTE: After finishing the tasks, copy the image manifest (core-image-sato-sdk-genericx86.manifest) and the testdata.json (core-image-sato-sdk-genericx86.testdata.json) from autobuilder at the following path: "~poky/build/tmp/deploy/images/genericx86/" ( if "/tmp/deploy/images/genericx86" does not exist create new directories with this path)

$ bitbake core-image-sato-sdk -c testimage

$ oe-selftest --run-all

    EXPECTED OUTCOME:
oe-selftest --run-all with successfully
 

    ACTUAL OUTCOME: 
oe-selftest --run-all work with successfully

    RESULTS  IN  ATTACHMENT