<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7730</bug_id>
          
          <creation_ts>2015-05-07 11:36:11 +0000</creation_ts>
          <short_desc>Some wic unittests fail</short_desc>
          <delta_ts>2015-07-07 13:31:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>general</component>
          <version>1.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.9 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lucian Musat">georgex.l.musat</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>costin.c.constantin</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="Lucian Musat">georgex.l.musat</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50846</commentid>
    <comment_count>0</comment_count>
    <who name="Lucian Musat">georgex.l.musat</who>
    <bug_when>2015-05-07 11:36:11 +0000</bug_when>
    <thetext>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 &quot;/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/wic.py&quot;, line 57, in test04_build_image_name
    self.assertEqual(0, runCmd(&quot;wic create directdisk &quot;
  File &quot;/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py&quot;, line 103, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, result.output))
AssertionError: Command &apos;wic create directdisk --image-name core-image-minimal&apos; 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 &quot;/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/wic.py&quot;, line 63, in test05_build_artifacts
    self.assertEqual(0, runCmd(&quot;wic create directdisk &quot;
  File &quot;/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py&quot;, line 103, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, result.output))
AssertionError: Command &apos;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&apos; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51182</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-05-21 10:19:22 +0000</bug_when>
    <thetext>Should be fixed by this http://lists.openembedded.org/pipermail/openembedded-core/2015-May/105197.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51241</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-05-25 12:17:19 +0000</bug_when>
    <thetext>My patch is in master now:
http://cgit.openembedded.org/openembedded-core/commit/?id=379c9bb7ffae5b40c5450e968cdde600b6edd3f3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51495</commentid>
    <comment_count>3</comment_count>
    <who name="Lucian Musat">georgex.l.musat</who>
    <bug_when>2015-06-04 08:18:16 +0000</bug_when>
    <thetext>Ran again on commit 1b0c03d99b5dff3346f429b978415e2ff0dd0905 and test04_build_image_name worked fine but test05_build_artifacts still failed.

Traceback (most recent call last):
  File &quot;/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/wic.py&quot;, line 69, in test05_build_artifacts
    self.assertEqual(0, runCmd(&quot;wic create directdisk &quot;
  File &quot;/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py&quot;, line 104, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:
%s&quot; % (command, result.status, result.output))
AssertionError: Command &apos;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&apos; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51548</commentid>
    <comment_count>4</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2015-06-08 13:11:25 +0000</bug_when>
    <thetext>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 &quot;test05_build_artifacts&quot; needs to search dynamically for the machine name, and the machine&apos;s architecture bitbake runs on.          
The reason why the test failed is because the config. on autobuilder was for MACHINE ??= &quot;qemux86-64&quot;

Costin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51717</commentid>
    <comment_count>5</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-06-16 08:51:25 +0000</bug_when>
    <thetext>Costin, thank you for the hint.

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

Please, review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51900</commentid>
    <comment_count>6</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-06-24 11:12:02 +0000</bug_when>
    <thetext>The fix is in master now: http://cgit.openembedded.org/openembedded-core/commit/?id=dda85cd420d47d97b0d0b0f294b37cd6066c541c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52002</commentid>
    <comment_count>7</comment_count>
    <who name="Lucian Musat">georgex.l.musat</who>
    <bug_when>2015-06-29 12:08:22 +0000</bug_when>
    <thetext>The wic tests work fine now. Setting as verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>