Bug 7730 - Some wic unittests fail
Summary: Some wic unittests fail
Status: VERIFIED FIXED
Alias: None
Product: Runtime Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 1.9
Hardware: x86 x86_64
: Medium+ normal
Target Milestone: 1.9 M1
Assignee: Ed Bartosh
QA Contact: Lucian Musat
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-05-07 11:36 UTC by Lucian Musat
Modified: 2015-07-07 13:31 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucian Musat 2015-05-07 11:36:11 UTC
On the latests weekly testrun we have some automated wic tests failing.

Commit: b2b59b14ecfe13ba794d92f97d1403d6503c7407
AB Link: http://autobuilder.yoctoproject.org/pub/nightly/20150505-2
Image type: core-image-sato-sdk

======================================================================
FAIL: test04_build_image_name (oeqa.selftest.wic.Wic)
Test wic create directdisk --image-name core-image-minimal
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/wic.py", line 57, in test04_build_image_name
    self.assertEqual(0, runCmd("wic create directdisk "
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py", line 103, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, result.output))
AssertionError: Command 'wic create directdisk --image-name core-image-minimal' returned non-zero exit status 1:
Error: Please build syslinux first

Checking basic build environment...
Done.

Creating image(s)...

======================================================================
FAIL: test05_build_artifacts (oeqa.selftest.wic.Wic)
Test wic create directdisk providing all artifacts.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/wic.py", line 63, in test05_build_artifacts
    self.assertEqual(0, runCmd("wic create directdisk "
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py", line 103, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, result.output))
AssertionError: Command 'wic create directdisk -b tmp/sysroots/qemux86/usr/share -k tmp/deploy/images/qemux86 -n tmp/sysroots/x86_64-linux -r tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs' returned non-zero exit status 1:
--roofs-dir (-r) not found, exiting


Lava link: http://yocto-lava.rb.intel.com/dashboard/streams/anonymous/oe-selftest-fedora/bundles/151b3500b8bc048f6da7c47e1b9b11fa3474caf7/d1de5eb1-5fee-4cbd-a394-bf0050ca2d71/?sort=-result#table
Comment 1 Ed Bartosh 2015-05-21 10:19:22 UTC
Should be fixed by this http://lists.openembedded.org/pipermail/openembedded-core/2015-May/105197.html
Comment 3 Lucian Musat 2015-06-04 08:18:16 UTC
Ran again on commit 1b0c03d99b5dff3346f429b978415e2ff0dd0905 and test04_build_image_name worked fine but test05_build_artifacts still failed.

Traceback (most recent call last):
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/wic.py", line 69, in test05_build_artifacts
    self.assertEqual(0, runCmd("wic create directdisk "
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py", line 104, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:
%s" % (command, result.status, result.output))
AssertionError: Command 'wic create directdisk -b tmp/sysroots/qemux86/usr/share -k tmp/deploy/images/qemux86 -n tmp/sysroots/x86_64-linux -r tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs' returned non-zero exit status 1:
--roofs-dir (-r) not found, exiting

Link: http://yocto-lava.rb.intel.com/dashboard/streams/anonymous/oe-selftest-ubuntu/bundles/e404d315aad7fd28ab358eac5f8a450c8ed29487/9715adff-d542-400f-8348-179e82ae0831/?sort=-result#table
Comment 4 Costin 2015-06-08 13:11:25 UTC
Hi Ed,

I had a look on the autobuilder and found there is something wrong (not 100% sure, still investigating) with the config there.

However, after having a look on meta/lib/oeqa/selftest/wic.py in my opinion, the test that failed here "test05_build_artifacts" needs to search dynamically for the machine name, and the machine's architecture bitbake runs on.          
The reason why the test failed is because the config. on autobuilder was for MACHINE ??= "qemux86-64"

Costin
Comment 5 Ed Bartosh 2015-06-16 08:51:25 UTC
Costin, thank you for the hint.

Should be fixed by this: http://lists.openembedded.org/pipermail/openembedded-core/2015-June/106131.html

Please, review.
Comment 7 Lucian Musat 2015-06-29 12:08:22 UTC
The wic tests work fine now. Setting as verified.