Changeset 212237 in webkit


Ignore:
Timestamp:
Feb 13, 2017 11:58:38 AM (7 years ago)
Author:
commit-queue@webkit.org
Message:

Nwtr unexpectedly passes mismatch ref test if the hashes doesn't match but no diff
https://bugs.webkit.org/show_bug.cgi?id=168221

Patch by Fujii Hironori <Fujii Hironori> on 2017-02-13
Reviewed by Ryosuke Niwa.

There is a logic error in comparing mismatch ref test images. In
mismatch ref tests, it should be failed if two images has no diff.
But, if the hashes are different, nwtr unexpectedly pass the
mismatch ref test.

  • Scripts/webkitpy/layout_tests/controllers/single_test_runner.py:

(SingleTestRunner._compare_output_with_reference): Fail the
mismatch ref test if hashes of two images are equal. Invoke
ImageDiff if the hashes don't match.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r212235 r212237  
     12017-02-13  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        Nwtr unexpectedly passes mismatch ref test if the hashes doesn't match but no diff
     4        https://bugs.webkit.org/show_bug.cgi?id=168221
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        There is a logic error in comparing mismatch ref test images. In
     9        mismatch ref tests, it should be failed if two images has no diff.
     10        But, if the hashes are different, nwtr unexpectedly pass the
     11        mismatch ref test.
     12
     13        * Scripts/webkitpy/layout_tests/controllers/single_test_runner.py:
     14        (SingleTestRunner._compare_output_with_reference): Fail the
     15        mismatch ref test if hashes of two images are equal. Invoke
     16        ImageDiff if the hashes don't match.
     17
    1182017-02-13  Myles C. Maxfield  <mmaxfield@apple.com>
    219
  • trunk/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py

    r209798 r212237  
    332332            failures.append(test_failures.FailureReftestNoImagesGenerated(reference_filename))
    333333        elif mismatch:
    334             if reference_driver_output.image_hash == actual_driver_output.image_hash:
     334            if reference_driver_output.image_hash != actual_driver_output.image_hash:
    335335                diff_result = self._port.diff_image(reference_driver_output.image, actual_driver_output.image, tolerance=0)
    336336                if not diff_result[0]:
    337337                    failures.append(test_failures.FailureReftestMismatchDidNotOccur(reference_filename))
    338                 else:
    339                     _log.warning("  %s -> ref test hashes matched but diff failed" % self._test_name)
     338            else:
     339                failures.append(test_failures.FailureReftestMismatchDidNotOccur(reference_filename))
    340340
    341341        elif reference_driver_output.image_hash != actual_driver_output.image_hash:
Note: See TracChangeset for help on using the changeset viewer.