Bug 9273

Summary: test_recipetool_create_simple fails on Ubuntu 15.04, 15.10 and CentOS 7.2
Product: [QA/Testing] Build Testing Reporter: Daniel Istrate <daniel.alexandrux.istrate>
Component: generalAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact: Alexandru Georgescu <alexandru.c.georgescu>
Severity: normal    
Priority: Medium CC: bluelightning
Version: 2.1   
Target Milestone: 2.1 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: Don't know

Description Daniel Istrate 2016-03-16 09:32:13 UTC
On poky commit: 8debfea81e69d038bd2d56314b272cb74f5582ed

test_recipetool_create_simple is failing.

Tested on Ubuntu 15.04, 15.10, CentOS 7.2.1511 and it is failing.
On Fedora 21, Fedora 23 and OpenSuse 13.2 it is passing.


daniel@ubuntu-ws:~/poky/build$ oe-selftest --run-tests-by id 1392
2016-03-15 16:44:05,098 - selftest - INFO - Running bitbake -e to get BBPATH
2016-03-15 16:44:08,034 - selftest - INFO - Checking that everything is in order before running the tests
2016-03-15 16:44:08,947 - selftest - INFO - Running bitbake -p
2016-03-15 16:44:14,700 - selftest - INFO - Loading tests from: oeqa.selftest.recipetool.RecipetoolTests.test_recipetool_create_simple
2016-03-15 16:44:14,700 - selftest - INFO - Adding: "include selftest.inc" in local.conf
2016-03-15 16:44:14,700 - selftest - INFO - Adding: "include bblayers.inc" in bblayers.conf
2016-03-15 16:44:15,028 - selftest - INFO - Running bitbake to generate pkgdata
2016-03-15 16:44:37 - test_recipetool_create_simple (oeqa.selftest.recipetool.RecipetoolTests) ... ERROR

======================================================================
ERROR: test_recipetool_create_simple (oeqa.selftest.recipetool.RecipetoolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/daniel/poky/meta/lib/oeqa/utils/decorators.py", line 106, in wrapped_f
    return func(*args, **kwargs)
  File "/home/daniel/poky/meta/lib/oeqa/selftest/recipetool.py", line 423, in test_recipetool_create_simple
    self._test_recipe_contents(os.path.join(temprecipe, dirlist[0]), checkvars, inherits)
  File "/home/daniel/poky/meta/lib/oeqa/selftest/devtool.py", line 17, in _test_recipe_contents
    with open(recipefile, 'r') as f:
IOError: [Errno 21] Is a directory: '/tmp/recipetoolqambezil/recipe/socat'

----------------------------------------------------------------------
Ran 1 test in 37.352s

FAILED (errors=1)
2016-03-15 16:44:52,053 - selftest - INFO - Finished
2016-03-15 16:44:52,053 - selftest - INFO - Removing the include from local.conf
2016-03-15 16:44:52,053 - selftest - INFO - Removing the include from bblayers.conf
daniel@ubuntu-ws:~/poky/build$
Comment 1 Ross Burton 2016-03-16 09:43:40 UTC
This looks like "recipetool: create: don't create extra files directory unconditionally".  Paul?
Comment 2 Paul Eggleton 2016-03-16 18:51:06 UTC
If you mean it looks like that patch should fix the issue, I would say yes. It isn't in master yet.