| OLD | NEW |
| 1 # Copyright (C) 2012 Google Inc. All rights reserved. | 1 # Copyright (C) 2012 Google Inc. All rights reserved. |
| 2 # Copyright (C) 2012 Zoltan Horvath, Adobe Systems Incorporated. All rights rese
rved. | 2 # Copyright (C) 2012 Zoltan Horvath, Adobe Systems Incorporated. All rights rese
rved. |
| 3 # | 3 # |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 | 29 |
| 30 | 30 |
| 31 import errno | 31 import errno |
| 32 import logging | 32 import logging |
| 33 import math | 33 import math |
| 34 import re | 34 import re |
| 35 import os | |
| 36 import signal | 35 import signal |
| 37 import socket | |
| 38 import subprocess | |
| 39 import sys | |
| 40 import time | |
| 41 | 36 |
| 42 from webkitpy.layout_tests.controllers.test_result_writer import TestResultWrite
r | 37 from webkitpy.layout_tests.controllers.test_result_writer import TestResultWrite
r |
| 43 from webkitpy.layout_tests.port.driver import DriverInput | 38 from webkitpy.layout_tests.port.driver import DriverInput |
| 44 from webkitpy.layout_tests.port.driver import DriverOutput | 39 from webkitpy.layout_tests.port.driver import DriverOutput |
| 45 | 40 |
| 46 DEFAULT_TEST_RUNNER_COUNT = 4 | 41 DEFAULT_TEST_RUNNER_COUNT = 4 |
| 47 | 42 |
| 48 _log = logging.getLogger(__name__) | 43 _log = logging.getLogger(__name__) |
| 49 | 44 |
| 50 | 45 |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 (re.compile(r'^Dromaeo/'), SingleProcessPerfTest), | 309 (re.compile(r'^Dromaeo/'), SingleProcessPerfTest), |
| 315 (re.compile(r'^inspector/'), ChromiumStylePerfTest), | 310 (re.compile(r'^inspector/'), ChromiumStylePerfTest), |
| 316 ] | 311 ] |
| 317 | 312 |
| 318 @classmethod | 313 @classmethod |
| 319 def create_perf_test(cls, port, test_name, path, test_runner_count=DEFAULT_T
EST_RUNNER_COUNT): | 314 def create_perf_test(cls, port, test_name, path, test_runner_count=DEFAULT_T
EST_RUNNER_COUNT): |
| 320 for (pattern, test_class) in cls._pattern_map: | 315 for (pattern, test_class) in cls._pattern_map: |
| 321 if pattern.match(test_name): | 316 if pattern.match(test_name): |
| 322 return test_class(port, test_name, path, test_runner_count) | 317 return test_class(port, test_name, path, test_runner_count) |
| 323 return PerfTest(port, test_name, path, test_runner_count) | 318 return PerfTest(port, test_name, path, test_runner_count) |
| OLD | NEW |