Changeset 89881 in webkit
- Timestamp:
- Jun 27, 2011 5:33:26 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r89873 r89881 1 2011-06-27 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 NRWT should wait for ReportCrash 6 https://bugs.webkit.org/show_bug.cgi?id=63495 7 8 When a test crashes on Mac, ReportCrash confuses us into thinking the 9 test times out. 10 11 I'm not sure how to test this in a meaningful way in our current test 12 harness... 13 14 * Scripts/webkitpy/common/system/crashlogs.py: 15 * Scripts/webkitpy/common/system/crashlogs_unittest.py: 16 * Scripts/webkitpy/layout_tests/layout_package/test_result_writer.py: 17 * Scripts/webkitpy/layout_tests/port/base.py: 18 * Scripts/webkitpy/layout_tests/port/mac.py: 19 * Scripts/webkitpy/layout_tests/port/server_process.py: 20 * Scripts/webkitpy/tool/commands/queries.py: 21 1 22 2011-06-27 Adam Barth <abarth@webkit.org> 2 23 -
trunk/Tools/Scripts/webkitpy/common/system/crashlogs.py
r89873 r89881 37 37 38 38 class CrashLogs(object): 39 def __init__(self, executive, filesystem): 40 self._executive = executive 39 def __init__(self, filesystem): 41 40 self._filesystem = filesystem 42 41 … … 62 61 if not logs: 63 62 return 64 65 # FIXME: We should wait for the CrashReporter to finish, but that causes tests to timeout.66 if False:67 self._executive.wait_newest(_is_crash_reporter)68 63 return self._filesystem.read_text_file(sorted(logs)[-1]) -
trunk/Tools/Scripts/webkitpy/common/system/crashlogs_unittest.py
r89843 r89881 38 38 files['/Users/mock/Library/Logs/DiagnosticReports/TextMate_2011-06-13-150719_quadzen.crash'] = mock_crash_report 39 39 filesystem = MockFileSystem(files) 40 crash_logs = CrashLogs( Mock(),filesystem)40 crash_logs = CrashLogs(filesystem) 41 41 log = crash_logs.find_newest_log("TextMate") 42 42 self.assertTrue(log, mock_crash_report) -
trunk/Tools/Scripts/webkitpy/common/system/executive.py
r89843 r89881 297 297 298 298 if sys.platform in ("win32", "cygwin"): 299 raise NotImplemented() 299 # FIXME: running_pids isn't implemented on Windows yet... 300 return [] 300 301 301 302 ps_process = self.popen(['ps', '-eo', 'pid,comm'], stdout=self.PIPE, stderr=self.PIPE) -
trunk/Tools/Scripts/webkitpy/layout_tests/layout_package/test_result_writer.py
r89873 r89881 174 174 fs.maybe_make_directory(fs.dirname(filename)) 175 175 # FIXME: We shouldn't be grabbing private members of port. 176 crash_logs = CrashLogs( self._port._executive,fs)176 crash_logs = CrashLogs(fs) 177 177 log = crash_logs.find_newest_log(self._port.driver_name()) 178 178 # CrashLogs doesn't support every platform, so we fall back to -
trunk/Tools/Scripts/webkitpy/layout_tests/port/base.py
r89868 r89881 289 289 return ''.join(diff) 290 290 291 def is_crash_reporter(self, process_name): 292 return False 293 291 294 def driver_name(self): 292 295 """Returns the name of the actual binary that is performing the test, -
trunk/Tools/Scripts/webkitpy/layout_tests/port/mac.py
r89512 r89881 31 31 import logging 32 32 import platform 33 import re 33 34 34 35 from webkitpy.layout_tests.port.webkit import WebKitPort … … 100 101 'mac', 'test_expectations.txt') 101 102 103 def is_crash_reporter(self, process_name): 104 return re.search(r'ReportCrash', process_name) 105 102 106 def _skipped_file_paths(self): 103 107 # FIXME: This method will need to be made work for non-mac -
trunk/Tools/Scripts/webkitpy/layout_tests/port/server_process.py
r85982 r89881 168 168 deadline = time.time() + timeout 169 169 while not self.timed_out and not self.crashed: 170 if self._executive.running_pids(self._port.is_crash_reporter): 171 _log.warning('%s is waiting for crash reporter...' % self._name) 172 self._executive.wait_newest(self._port.is_crash_reporter) 173 170 174 # poll() is not threadsafe and can throw OSError due to: 171 175 # http://bugs.python.org/issue1731717 -
trunk/Tools/Scripts/webkitpy/tool/commands/queries.py
r89843 r89881 374 374 375 375 def execute(self, options, args, tool): 376 crash_logs = CrashLogs(tool. executive, tool.filesystem)376 crash_logs = CrashLogs(tool.filesystem) 377 377 print crash_logs.find_newest_log(args[0]) 378 378
Note: See TracChangeset
for help on using the changeset viewer.