2010-10-29 Dirk Pranke <dpranke@chromium.org>
authordpranke@chromium.org <dpranke@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Oct 2010 22:46:57 +0000 (22:46 +0000)
committerdpranke@chromium.org <dpranke@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Oct 2010 22:46:57 +0000 (22:46 +0000)
commitca2190dd6f13d705cef9112c063128ebb540c9f9
treeee3d3b434fc2dbe96efc9005a14bd9d9458beb50
parent9ee4a1a93f47a5cbe68398d5b26519e0032fb001
2010-10-29  Dirk Pranke  <dpranke@chromium.org>

        Reviewed by Tony Chang.

        new-run-webkit-tests: change TestResults to be serializable

        In preparation for changing new-run-webkit-tests from
        multithreaded to multiprocess, we need to make sure the data
        going between the threads is easily serialized over a socket.

        This change adds serialization/pickling for the TestResults and
        TestFailure objects (using cPickle).

        The TestFailure objects included a "has_wdiff" flag for Text
        results, but the flag wasn't being used, so I've removed it,
        simplifying the state to basically a set of enum objects with
        associated methods.

        https://bugs.webkit.org/show_bug.cgi?id=48616

        * Scripts/webkitpy/layout_tests/layout_package/dump_render_tree_thread.py:
        * Scripts/webkitpy/layout_tests/layout_package/printing_unittest.py:
        * Scripts/webkitpy/layout_tests/layout_package/test_failures.py:
        * Scripts/webkitpy/layout_tests/layout_package/test_failures_unittest.py:
        * Scripts/webkitpy/layout_tests/layout_package/test_results.py: Added.
        * Scripts/webkitpy/layout_tests/layout_package/test_results_unittest.py:Added.
        * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
        * Scripts/webkitpy/layout_tests/test_types/text_diff.py:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70943 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKitTools/ChangeLog
WebKitTools/Scripts/webkitpy/layout_tests/layout_package/dump_render_tree_thread.py
WebKitTools/Scripts/webkitpy/layout_tests/layout_package/printing_unittest.py
WebKitTools/Scripts/webkitpy/layout_tests/layout_package/test_failures.py
WebKitTools/Scripts/webkitpy/layout_tests/layout_package/test_failures_unittest.py
WebKitTools/Scripts/webkitpy/layout_tests/layout_package/test_results.py [new file with mode: 0644]
WebKitTools/Scripts/webkitpy/layout_tests/layout_package/test_results_unittest.py [new file with mode: 0644]
WebKitTools/Scripts/webkitpy/layout_tests/run_webkit_tests.py
WebKitTools/Scripts/webkitpy/layout_tests/test_types/text_diff.py