Changeset 192565 in webkit
- Timestamp:
- Nov 17, 2015, 10:27:09 PM (9 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r192474 r192565 1 2015-11-17 Alexey Proskuryakov <ap@apple.com> 2 3 run-webkit-tests should not truncate persistent lines 4 https://bugs.webkit.org/show_bug.cgi?id=151376 5 rdar://problem/23162775 6 7 Reviewed by Antti Koivisto. 8 9 It is OK to truncate progress lines, but it's not OK to truncate error (or otherwise 10 unexpected result) messages that remain on the screen to be read. In practice, this 11 almost always truncates the test path, which is important to see. 12 13 * Scripts/webkitpy/layout_tests/views/printing.py: 14 (Printer._test_status_line): 15 (Printer.print_finished_test): 16 * Scripts/webkitpy/layout_tests/views/printing_unittest.py: 17 (Testprinter.test_test_status_line): 18 1 19 2015-11-16 Carlos Garcia Campos <cgarcia@igalia.com> 2 20 -
trunk/Tools/Scripts/webkitpy/layout_tests/views/printing.py
r177034 r192565 288 288 self._print_quiet("") 289 289 290 def _test_status_line(self, test_name, suffix ):290 def _test_status_line(self, test_name, suffix, truncate=True): 291 291 format_string = '[%d/%d] %s%s' 292 292 status_line = format_string % (self.num_started, self.num_tests, test_name, suffix) 293 if len(status_line) > self._meter.number_of_columns():293 if truncate and len(status_line) > self._meter.number_of_columns(): 294 294 overflow_columns = len(status_line) - self._meter.number_of_columns() 295 295 ellipsis = '...' … … 325 325 self._print_test_trace(result, exp_str, got_str) 326 326 elif (self._options.verbose and not self._options.debug_rwt_logging) or not expected: 327 self.writeln(self._test_status_line(test_name, result_message ))327 self.writeln(self._test_status_line(test_name, result_message, truncate=False)) 328 328 elif self.num_started == self.num_tests: 329 329 self._meter.write_update('') … … 335 335 336 336 for test_name, result_message in self._completed_tests: 337 self._meter.write_throttled_update(self._test_status_line(test_name, result_message ))337 self._meter.write_throttled_update(self._test_status_line(test_name, result_message, truncate=False)) 338 338 self._completed_tests = [] 339 339 self._running_tests.remove(test_name) -
trunk/Tools/Scripts/webkitpy/layout_tests/views/printing_unittest.py
r174136 r192565 151 151 self.assertEqual(actual, '[0/0] fast/dom/HTMLFormElement/associa...after-index-assertion-fail1.html passed') 152 152 153 printer._meter.number_of_columns = lambda: 80 154 actual = printer._test_status_line('fast/dom/HTMLFormElement/associated-elements-after-index-assertion-fail1.html', ' passed', truncate=False) 155 self.assertEqual(90, len(actual)) 156 self.assertEqual(actual, '[0/0] fast/dom/HTMLFormElement/associated-elements-after-index-assertion-fail1.html passed') 157 153 158 printer._meter.number_of_columns = lambda: 89 154 159 actual = printer._test_status_line('fast/dom/HTMLFormElement/associated-elements-after-index-assertion-fail1.html', ' passed')
Note:
See TracChangeset
for help on using the changeset viewer.