<?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>11356</bug_id>
          
          <creation_ts>2017-04-13 12:39:19 +0000</creation_ts>
          <short_desc>oe-selftest: add an assertExists() function and change tests to use it</short_desc>
          <delta_ts>2017-09-15 03:06:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="yeoh ee peng">ee.peng.yeoh</assigned_to>
          <cc>benjamin.esquivel</cc>
    
    <cc>sgw</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>72454</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-04-13 12:39:19 +0000</bug_when>
    <thetext>In a lot of our oe-selftest tests, for example in the devtool module, we use something like self.assertTrue(os.path.exists(filepath)) - this leads to slightly awkward messages on failure starting with &quot;False is not true&quot; (no kidding!). To avoid that and make the test code slightly less verbose, let&apos;s add assertExists() and assertNotExists() methods on the base test class and change all tests doing an assert on file existence to use that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76877</commentid>
    <comment_count>1</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2017-09-15 03:06:56 +0000</bug_when>
    <thetext>Pushed commit to mailing list for review:
http://lists.openembedded.org/pipermail/openembedded-core/2017-June/138178.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>