| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 def supports_per_test_timeout(self): | 240 def supports_per_test_timeout(self): |
| 241 return False | 241 return False |
| 242 | 242 |
| 243 def default_pixel_tests(self): | 243 def default_pixel_tests(self): |
| 244 return False | 244 return False |
| 245 | 245 |
| 246 def default_smoke_test_only(self): | 246 def default_smoke_test_only(self): |
| 247 return False | 247 return False |
| 248 | 248 |
| 249 def default_timeout_ms(self): | 249 def default_timeout_ms(self): |
| 250 # TODO(esprehn): Remove this hack. | 250 timeout_ms = 4000 |
| 251 timeout_ms = 30 * 1000 | |
| 252 # if self.get_option('configuration') == 'Debug': | |
| 253 # # Debug is usually 2x-3x slower than Release. | |
| 254 # return 3 * timeout_ms | |
| 255 return timeout_ms | 251 return timeout_ms |
| 256 | 252 |
| 257 def driver_stop_timeout(self): | 253 def driver_stop_timeout(self): |
| 258 """ Returns the amount of time in seconds to wait before killing the pro
cess in driver.stop().""" | 254 """ Returns the amount of time in seconds to wait before killing the pro
cess in driver.stop().""" |
| 259 # We want to wait for at least 3 seconds, but if we are really slow, we
want to be slow on cleanup as | 255 # We want to wait for at least 3 seconds, but if we are really slow, we
want to be slow on cleanup as |
| 260 # well (for things like ASAN, Valgrind, etc.) | 256 # well (for things like ASAN, Valgrind, etc.) |
| 261 return 3.0 * float(self.get_option('time_out_ms', '0')) / self.default_t
imeout_ms() | 257 return 3.0 * float(self.get_option('time_out_ms', '0')) / self.default_t
imeout_ms() |
| 262 | 258 |
| 263 def wdiff_available(self): | 259 def wdiff_available(self): |
| 264 if self._wdiff_available is None: | 260 if self._wdiff_available is None: |
| (...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1777 | 1773 |
| 1778 class PhysicalTestSuite(object): | 1774 class PhysicalTestSuite(object): |
| 1779 def __init__(self, base, args): | 1775 def __init__(self, base, args): |
| 1780 self.name = base | 1776 self.name = base |
| 1781 self.base = base | 1777 self.base = base |
| 1782 self.args = args | 1778 self.args = args |
| 1783 self.tests = set() | 1779 self.tests = set() |
| 1784 | 1780 |
| 1785 def __repr__(self): | 1781 def __repr__(self): |
| 1786 return "PhysicalTestSuite('%s', '%s', %s)" % (self.name, self.base, self
.args) | 1782 return "PhysicalTestSuite('%s', '%s', %s)" % (self.name, self.base, self
.args) |
| OLD | NEW |