| OLD | NEW |
| 1 # Copyright (C) 2010 Google Inc. All rights reserved. | 1 # Copyright (C) 2010 Google Inc. All rights reserved. |
| 2 # | 2 # |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 self.host = host | 165 self.host = host |
| 166 self._executive = host.executive | 166 self._executive = host.executive |
| 167 self._filesystem = host.filesystem | 167 self._filesystem = host.filesystem |
| 168 self._webkit_finder = WebKitFinder(host.filesystem) | 168 self._webkit_finder = WebKitFinder(host.filesystem) |
| 169 | 169 |
| 170 self._http_server = None | 170 self._http_server = None |
| 171 self._websocket_server = None | 171 self._websocket_server = None |
| 172 self._is_wptserve_enabled = getattr(options, 'enable_wptserve', False) | 172 self._is_wptserve_enabled = getattr(options, 'enable_wptserve', False) |
| 173 self._wpt_server = None | 173 self._wpt_server = None |
| 174 self._image_differ = None | 174 self._image_differ = None |
| 175 self._server_process_constructor = server_process.ServerProcess # overr
idable for testing | 175 self.server_process_constructor = server_process.ServerProcess # overri
dable for testing |
| 176 self._http_lock = None # FIXME: Why does this live on the port object? | 176 self._http_lock = None # FIXME: Why does this live on the port object? |
| 177 self._dump_reader = None | 177 self._dump_reader = None |
| 178 | 178 |
| 179 # Python's Popen has a bug that causes any pipes opened to a | 179 # Python's Popen has a bug that causes any pipes opened to a |
| 180 # process that can't be executed to be leaked. Since this | 180 # process that can't be executed to be leaked. Since this |
| 181 # code is specifically designed to tolerate exec failures | 181 # code is specifically designed to tolerate exec failures |
| 182 # to gracefully handle cases where wdiff is not installed, | 182 # to gracefully handle cases where wdiff is not installed, |
| 183 # the bug results in a massive file descriptor leak. As a | 183 # the bug results in a massive file descriptor leak. As a |
| 184 # workaround, if an exec failure is ever experienced for | 184 # workaround, if an exec failure is ever experienced for |
| 185 # wdiff, assume it's not available. This will leak one | 185 # wdiff, assume it's not available. This will leak one |
| (...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1794 | 1794 |
| 1795 def __init__(self, base, args, reference_args=None): | 1795 def __init__(self, base, args, reference_args=None): |
| 1796 self.name = base | 1796 self.name = base |
| 1797 self.base = base | 1797 self.base = base |
| 1798 self.args = args | 1798 self.args = args |
| 1799 self.reference_args = args if reference_args is None else reference_args | 1799 self.reference_args = args if reference_args is None else reference_args |
| 1800 self.tests = set() | 1800 self.tests = set() |
| 1801 | 1801 |
| 1802 def __repr__(self): | 1802 def __repr__(self): |
| 1803 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) | 1803 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) |
| OLD | NEW |