Bug 7920

Summary: test_recipetool_appendfile_binary fails in oe-selftest
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Beth Flanagan <elizabeth.flanagan>
Component: coreAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact: Mihail Stanciu <stanciux.mihail>
Severity: normal    
Priority: Medium+ CC: cristina-danielax.agurida, meta.mr.watcher, meta.watcher, richard.purdie
Version: unspecified   
Target Milestone: 1.9 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Beth Flanagan 2015-06-24 17:58:03 UTC
https://autobuilder.yoctoproject.org/main/builders/nightly-oe-selftest/builds/32/steps/Running%20oe-selftest/logs/stdio

======================================================================
FAIL: test_recipetool_appendfile_binary (oeqa.selftest.recipetool.RecipetoolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/recipetool.py", line 115, in test_recipetool_appendfile_binary
    self.assertIn('WARNING: ', result.output)
AssertionError: 'WARNING: ' not found in 'Parsing recipes..done.\nNOTE: Writing append file /tmp/recipetoolqaFV2HtX/recipes-core/coreutils/coreutils_8.23.bbappend\nNOTE: Copying /bin/ls to /tmp/recipetoolqaFV2HtX/recipes-core/coreutils/coreutils/ls'

----------------------------------------------------------------------
Ran 119 tests in 24647.770s
Comment 1 Richard Purdie 2015-06-25 15:29:13 UTC
Appears to reproduce on the autobuilder:

pokybuild@opensuse131:~/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build> source oe-init-build-env

### Shell environment set up for builds. ###

You can now run 'bitbake <target>'

Common targets are:
    core-image-minimal
    core-image-sato
    meta-toolchain
    adt-installer
    meta-ide-support

You can also run generated qemu images with a command like 'runqemu qemux86'
pokybuild@opensuse131:~/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build> oe-selftest --run-tests recipetool.RecipetoolTests.test_recipetool_appendfile_binary
2015-06-25 15:26:01,789 - selftest - INFO - Checking that everything is in order before running the tests
2015-06-25 15:26:03,660 - selftest - INFO - Running bitbake -p
2015-06-25 15:26:08,098 - selftest - INFO - Loading tests from: oeqa.selftest.recipetool.RecipetoolTests.test_recipetool_appendfile_binary
2015-06-25 15:26:08,114 - selftest - INFO - Adding: "include selftest.inc" in local.conf
2015-06-25 15:26:08,570 - selftest - INFO - Running bitbake to generate pkgdata
test_recipetool_appendfile_binary (oeqa.selftest.recipetool.RecipetoolTests) ... FAIL

======================================================================
FAIL: test_recipetool_appendfile_binary (oeqa.selftest.recipetool.RecipetoolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/recipetool.py", line 115, in test_recipetool_appendfile_binary
    self.assertIn('WARNING: ', result.output)
AssertionError: 'WARNING: ' not found in 'Parsing recipes..done.\nNOTE: Writing append file /tmp/recipetoolqai0NY8l/recipes-core/coreutils/coreutils_8.23.bbappend\nNOTE: Copying /bin/ls to /tmp/recipetoolqai0NY8l/recipes-core/coreutils/coreutils/ls'

----------------------------------------------------------------------
Ran 1 test in 36.297s

FAILED (failures=1)
2015-06-25 15:26:44,411 - selftest - INFO - Finished
2015-06-25 15:26:44,412 - selftest - INFO - Removing the include from local.conf
Comment 2 Richard Purdie 2015-06-25 15:32:14 UTC
The reason appears to be that /bin/ls is not a binary file on opensuse131:

pokybuild@opensuse131:~/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build> file /bin/ls
/bin/ls: symbolic link to `/usr/bin/ls'
Comment 4 Mihail Stanciu 2015-08-24 15:07:50 UTC
Verified while testing 1.9 M2 RC2: c75cefe8a382a63f625123c156137782db118f64