Changeset 57486 in webkit
- Timestamp:
- Apr 12, 2010 4:15:08 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r57483 r57486 1 2010-04-12 Dirk Pranke <dpranke@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 Modify run_webkit_tests.py to not call sys.exit() at the end of test 6 run; doing so makes it more difficult to embed the routine for, 7 among other things, unit tests. We push the exit calling up into 8 new-run-webkit-tests. 9 10 https://bugs.webkit.org/show_bug.cgi?id=37464 11 12 * Scripts/new-run-webkit-tests: 13 * Scripts/webkitpy/layout_tests/run_webkit_tests.py: 14 1 15 2010-04-12 Eric Seidel <eric@webkit.org> 2 16 -
trunk/WebKitTools/Scripts/new-run-webkit-tests
r57443 r57486 29 29 30 30 """Wrapper around webkitpy/layout_tests/run_webkit_tests.py""" 31 import sys 31 32 32 33 import webkitpy.layout_tests.run_webkit_tests as run_webkit_tests … … 34 35 if __name__ == '__main__': 35 36 options, args = run_webkit_tests.parse_args() 36 run_webkit_tests.main(options, args)37 sys.exit(run_webkit_tests.main(options, args)) -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/run_webkit_tests.py
r57470 r57486 615 615 616 616 Return: 617 We return nonzero if there are regressions compared to the last run.617 The number of unexpected results (0 == success) 618 618 """ 619 619 if not self._test_files: … … 1369 1369 1370 1370 def main(options, args): 1371 """Run the tests. Will call sys.exit when complete.1371 """Run the tests. 1372 1372 1373 1373 Args: 1374 1374 options: a dictionary of command line options 1375 1375 args: a list of sub directories or files to test 1376 Returns: 1377 the number of unexpected results that occurred, or -1 if there is an 1378 error. 1376 1379 """ 1377 1380 … … 1471 1474 print ("If there are no fail messages, errors or exceptions, then the " 1472 1475 "lint succeeded.") 1473 sys.exit(0)1476 return 0 1474 1477 1475 1478 write = create_logging_writer(options, "config") … … 1491 1494 meter.update("Checking build ...") 1492 1495 if not port_obj.check_build(test_runner.needs_http()): 1493 sys.exit(1)1496 return -1 1494 1497 1495 1498 meter.update("Starting helper ...") … … 1500 1503 meter.update("Checking system dependencies ...") 1501 1504 if not port_obj.check_sys_deps(test_runner.needs_http()): 1502 sys.exit(1)1505 return -1 1503 1506 1504 1507 meter.update("Preparing tests ...") … … 1514 1517 test_runner.add_test_type(fuzzy_image_diff.FuzzyImageDiff) 1515 1518 1516 has_new_failures = test_runner.run(result_summary)1519 num_unexpected_results = test_runner.run(result_summary) 1517 1520 1518 1521 port_obj.stop_helper() 1519 1522 1520 _log.debug("Exit status: %d" % has_new_failures)1521 sys.exit(has_new_failures)1523 _log.debug("Exit status: %d" % num_unexpected_results) 1524 return num_unexpected_results 1522 1525 1523 1526 … … 1621 1624 if '__main__' == __name__: 1622 1625 options, args = parse_args() 1623 main(options, args)1626 sys.exit(main(options, args))
Note: See TracChangeset
for help on using the changeset viewer.