Changeset 57843 in webkit


Ignore:
Timestamp:
Apr 19, 2010 2:56:59 PM (14 years ago)
Author:
dpranke@chromium.org
Message:

2010-04-19 Dirk Pranke <dpranke@chromium.org>

Reviewed by Eric Seidel.

new-run-webkit-tests: add a way (--print-unexpected-results) to
(re-)print out the tests that produced unexpected results in the
last run. Also add a way (--retry-unexpected-results) to
automatically re-test them.

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

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

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r57841 r57843  
     12010-04-19  Dirk Pranke  <dpranke@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        new-run-webkit-tests: add a way (--print-unexpected-results) to
     6        (re-)print out the tests that produced unexpected results in the
     7        last run. Also add a way (--retry-unexpected-results) to
     8        automatically re-test them.
     9
     10        https://bugs.webkit.org/show_bug.cgi?id=37783
     11
     12        * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
     13
    1142010-04-19  Dirk Pranke  <dpranke@chromium.org>
    215
  • trunk/WebKitTools/Scripts/webkitpy/layout_tests/run_webkit_tests.py

    r57841 r57843  
    14401440        options.results_directory = port_obj.results_directory()
    14411441
     1442    last_unexpected_results = []
     1443    if options.print_unexpected_results or options.retry_unexpected_results:
     1444        unexpected_results_filename = os.path.join(
     1445           options.results_directory, "unexpected_results.json")
     1446        f = file(unexpected_results_filename)
     1447        results = simplejson.load(f)
     1448        f.close()
     1449        last_unexpected_results = results['tests'].keys()
     1450        if options.print_unexpected_results:
     1451            print "\n".join(last_unexpected_results) + "\n"
     1452            return 0
     1453
    14421454    if options.clobber_old_results:
    14431455        # Just clobber the actual test results directories since the other
     
    14831495    if not paths:
    14841496        paths = []
     1497    paths += last_unexpected_results
    14851498    if options.test_list:
    14861499        paths += read_test_files(options.test_list)
     
    17321745        # FIXME: consider: --iterations n
    17331746        #      Number of times to run the set of tests (e.g. ABCABCABC)
     1747        optparse.make_option("--print-unexpected-results", action="store_true",
     1748            default=False, help="print the tests in the last run that "
     1749            "had unexpected results."),
     1750        optparse.make_option("--retry-unexpected-results", action="store_true",
     1751            default=False, help="re-try the tests in the last run that "
     1752            "had unexpected results."),
    17341753    ]
    17351754
Note: See TracChangeset for help on using the changeset viewer.