Changeset 56652 in webkit


Ignore:
Timestamp:
Mar 26, 2010 7:38:59 PM (14 years ago)
Author:
dpranke@chromium.org
Message:

2010-03-26 Dirk Pranke <dpranke@chromium.org>

Unreviewed fix.

Fix the return value for port/base.diff_image (changed from 1/0 to
True/False in bug 34826.

  • Scripts/webkitpy/layout_tests/port/base.py:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r56648 r56652  
     12010-03-26  Dirk Pranke  <dpranke@chromium.org>
     2
     3        Unreviewed fix.
     4
     5        Fix the return value for port/base.diff_image (changed from 1/0 to
     6        True/False in bug 34826.
     7
     8        * Scripts/webkitpy/layout_tests/port/base.py:
     9
    1102010-03-26  Dirk Pranke  <dpranke@chromium.org>
    211
  • trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/base.py

    r56510 r56652  
    9595        """Compare two image files and produce a delta image file.
    9696
    97         Return 1 if the two files are different, 0 if they are the same.
     97        Return True if the two files are different, False if they are the same.
    9898        Also produce a delta image of the two images and write that into
    9999        |diff_filename| if it is not None.
     
    109109            cmd = [executable, expected_filename, actual_filename]
    110110
    111         result = 1
     111        result = True
    112112        try:
    113             result = subprocess.call(cmd)
     113            if subprocess.call(cmd) == 0:
     114                return False
    114115        except OSError, e:
    115116            if e.errno == errno.ENOENT or e.errno == errno.EACCES:
Note: See TracChangeset for help on using the changeset viewer.