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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>66581</bug_id>
          
          <creation_ts>2011-08-19 13:53:07 -0700</creation_ts>
          <short_desc>new-run-webkit-tests returns false-positives for chromium port if ImageDiff fails</short_desc>
          <delta_ts>2012-08-01 19:27:37 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>92934</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NRWT</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>64491</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Shawn Singh">shawnsingh</reporter>
          <assigned_to name="Dirk Pranke">dpranke</assigned_to>
          <cc>dpranke</cc>
    
    <cc>eric</cc>
    
    <cc>ojan</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>454051</commentid>
    <comment_count>0</comment_count>
    <who name="Shawn Singh">shawnsingh</who>
    <bug_when>2011-08-19 13:53:07 -0700</bug_when>
    <thetext>if the ImageDiff tool fails, then the diff_image function (in ChromiumPort, Tools/Scripts/webkitpy/layout_tests/port/layoutchromium.py) returns &quot;None&quot; to indicate the test passed.  It does print an error in this case, but it is too easy to overlook it.

It is probably important to find a cleaner way to handle this.  Some options (thanks to dpranke):
 - the ideal option is to modify NRWT to handle internal errors so that tests are marked as &quot;internal error, could not run test&quot; instead of passed or failed.
 - modify the code to cause a test failure and outputs a diff, then the user can see that the diff is actually correct (false negatives may be safer than false positives)
 - optionally, have NRWT output a diff, with a hardcoded .png that literally says there was an internal error in the image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>481852</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-10-11 13:15:56 -0700</bug_when>
    <thetext>I wonder if this is a dupe of or at least related to bug 47240.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>481853</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-10-11 13:16:31 -0700</bug_when>
    <thetext>On further reading, no. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>684898</commentid>
    <comment_count>3</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-08-01 19:27:37 -0700</bug_when>
    <thetext>whoops, this is now a dup of bug 92934, since I attached a patch there ...

*** This bug has been marked as a duplicate of bug 92934 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>