<?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>13730</bug_id>
          
          <creation_ts>2020-01-09 11:20:37 +0000</creation_ts>
          <short_desc>devtool tests break with strange files in tree</short_desc>
          <delta_ts>2026-04-30 15:12:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>6.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>mathieu.dubois-briand</cc>
    
    <cc>matthewzmd</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>85992</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-01-09 11:20:37 +0000</bug_when>
    <thetext>There wasa rebase change I&apos;d skipped which left &apos;bad&apos; files in the filesystem. This caused oe-selftest to break, probably due to bad quoting?

2020-01-09 10:42:53,563 - oe-selftest - INFO - ======================================================================
2020-01-09 10:42:53,563 - oe-selftest - INFO - ERROR: setUpModule (devtool)
2020-01-09 10:42:53,563 - oe-selftest - INFO - ----------------------------------------------------------------------
2020-01-09 10:42:53,563 - oe-selftest - INFO - Traceback (most recent call last):
  File &quot;/media/build1/poky/meta/lib/oeqa/selftest/cases/devtool.py&quot;, line 67, in setUpModule
    bb.utils.edit_bblayers_conf(bblayers_conf, None, None, bblayers_edit_cb)
  File &quot;/media/build1/poky/bitbake/lib/bb/utils.py&quot;, line 1411, in edit_bblayers_conf
    (updated, newlines) = edit_metadata(newlines, [&apos;BBLAYERS&apos;], handle_bblayers)
  File &quot;/media/build1/poky/bitbake/lib/bb/utils.py&quot;, line 1241, in edit_metadata
    if handle_var_end():
  File &quot;/media/build1/poky/bitbake/lib/bb/utils.py&quot;, line 1166, in handle_var_end
    (newvalue, newop, indent, minbreak) = varfunc(in_var, full_value, op, newlines)
  File &quot;/media/build1/poky/bitbake/lib/bb/utils.py&quot;, line 1376, in handle_bblayers
    res = edit_cb(layer, canonicalise_path(layer))
  File &quot;/media/build1/poky/meta/lib/oeqa/selftest/cases/devtool.py&quot;, line 63, in bblayers_edit_cb
    shutil.copy2(pth, destdir)
  File &quot;/usr/lib/python3.6/shutil.py&quot;, line 263, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File &quot;/usr/lib/python3.6/shutil.py&quot;, line 120, in copyfile
    with open(src, &apos;rb&apos;) as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: &apos;/media/build1/poky/meta/recipes-core/glib-2.0/glib-2.0/meson.cross.d/common-linux~XXX&apos;

2020-01-09 10:42:53,563 - oe-selftest - INFO - ----------------------------------------------------------------------
2020-01-09 10:42:53,564 - oe-selftest - INFO - Ran 0 tests in 10.971s
2020-01-09 10:42:53,564 - oe-selftest - INFO - FAILED
2020-01-09 10:42:53,564 - oe-selftest - INFO -  (errors=1)
2020-01-09 10:42:59,545 - oe-selftest - INFO - RESULTS:
2020-01-09 10:42:59,546 - oe-selftest - INFO - RESULTS - devtool.DevtoolAddTests.test_devtool_add_git_local: ERROR
2020-01-09 10:42:59,633 - oe-selftest - INFO - SUMMARY:
2020-01-09 10:42:59,633 - oe-selftest - INFO - oe-selftest () - Ran 0 tests in 10.972s
2020-01-09 10:42:59,633 - oe-selftest - INFO - oe-selftest - FAIL - Required tests failed (successes=0, skipped=0, failures=0, errors=1)
$ ls /media/build1/poky/meta/recipes-core/glib-2.0/glib-2.0/meson.cross.d/
 common   common-glibc   common-linux   common-linux~HEAD  &apos;common-linux~XXX glib: generic cross file mojo&apos;   common-mingw   common-musl</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89150</commentid>
    <comment_count>1</comment_count>
    <who name="Mingde (Matthew) Zeng">matthewzmd</who>
    <bug_when>2021-02-05 05:24:52 +0000</bug_when>
    <thetext>Is this bug still reproducible? I had a look at devtool.py, nothing around bad quoting is immediately obvious.

If this is still reproducible, when the FileNotFoundError is raised, what is the directory &apos;/media/build1/poky/meta/recipes-core/glib-2.0/glib-2.0/meson.cross.d/common-linux~XXX&apos; look like? Does it actually exist in the file system?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90075</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-04-22 18:57:03 +0000</bug_when>
    <thetext>Matthew, I&apos;m not sure if it&apos;s reproducible. I can check in a few weeks if you ping me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90139</commentid>
    <comment_count>3</comment_count>
    <who name="Mingde (Matthew) Zeng">matthewzmd</who>
    <bug_when>2021-04-27 23:10:59 +0000</bug_when>
    <thetext>@Randy: Sounds good, with the exams out of the way, I&apos;m having more free time now, I can have a look at some issues if needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90140</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-04-27 23:35:55 +0000</bug_when>
    <thetext>Hey Matthew, Nice to hear from you. If you want to take a look that&apos;d be super.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92992</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-04-11 22:05:25 +0000</bug_when>
    <thetext>Moving to 2.6 and unassigning. @Matthew, take it back if you are interested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97117</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-30 15:37:27 +0000</bug_when>
    <thetext>Build move to 5.0 -- ../Randy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98826</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-04-25 01:13:53 +0000</bug_when>
    <thetext>Bulk move of 5.0 medium importance issues to 5.99.
Move to 5.1 if you want to actively work on an issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98866</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-04-25 01:23:12 +0000</bug_when>
    <thetext>Move to 5.99 since no one is actively working on this issue.
Move to 5.x if you start on a task, please.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>