Changeset 57622 in webkit
- Timestamp:
- Apr 14, 2010 5:59:11 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r57602 r57622 1 2010-04-15 Dirk Pranke <dpranke@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Add some very minimal unit tests for new-run-webkit-tests. This should 6 be enough to catch egregious brokenness like syntax errors and import 7 declaration issues. 8 9 https://bugs.webkit.org/show_bug.cgi?id=37432 10 11 * Scripts/webkitpy/layout_tests/run_webkit_tests.py: 12 * Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py: Added. 13 1 14 2010-04-14 Brian Weinstein <bweinstein@apple.com> 2 15 -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/run_webkit_tests.py
r57486 r57622 605 605 return self._contains_tests(self.HTTP_SUBDIR) 606 606 607 def run(self, result_summary ):607 def run(self, result_summary, print_results): 608 608 """Run all our tests on all our test files. 609 609 … … 613 613 Args: 614 614 result_summary: a summary object tracking the test results. 615 print_results: whether or not to print the summary at the end 615 616 616 617 Return: … … 668 669 sys.stderr.flush() 669 670 670 if (LOG_DETAILED_PROGRESS in self._options.log or671 (LOG_UNEXPECTED in self._options.log and672 result_summary.total != result_summary.expected)):673 print674 675 671 # This summary data gets written to stdout regardless of log level 676 self._print_one_line_summary(result_summary.total, 677 result_summary.expected) 672 # (unless of course we're printing nothing). 673 if print_results: 674 if (LOG_DETAILED_PROGRESS in self._options.log or 675 (LOG_UNEXPECTED in self._options.log and 676 result_summary.total != result_summary.expected)): 677 print 678 self._print_one_line_summary(result_summary.total, 679 result_summary.expected) 678 680 679 681 unexpected_results = self._summarize_unexpected_results(result_summary, … … 1368 1370 1369 1371 1370 def main(options, args ):1372 def main(options, args, print_results=True): 1371 1373 """Run the tests. 1372 1374 … … 1374 1376 options: a dictionary of command line options 1375 1377 args: a list of sub directories or files to test 1378 print_results: whether or not to log anything to stdout. 1379 Set to false by the unit tests 1376 1380 Returns: 1377 1381 the number of unexpected results that occurred, or -1 if there is an … … 1517 1521 test_runner.add_test_type(fuzzy_image_diff.FuzzyImageDiff) 1518 1522 1519 num_unexpected_results = test_runner.run(result_summary )1523 num_unexpected_results = test_runner.run(result_summary, print_results) 1520 1524 1521 1525 port_obj.stop_helper()
Note: See TracChangeset
for help on using the changeset viewer.