| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Classes and methods for executing tests. | 6 * Classes and methods for executing tests. |
| 7 * | 7 * |
| 8 * This module includes: | 8 * This module includes: |
| 9 * - Managing parallel execution of tests, including timeout checks. | 9 * - Managing parallel execution of tests, including timeout checks. |
| 10 * - Evaluating the output of each test as pass/fail/crash/timeout. | 10 * - Evaluating the output of each test as pass/fail/crash/timeout. |
| (...skipping 1630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1641 | 1641 |
| 1642 for (var runner in runners) { | 1642 for (var runner in runners) { |
| 1643 if (!runner.active) return runner; | 1643 if (!runner.active) return runner; |
| 1644 } | 1644 } |
| 1645 throw new Exception('Unable to find inactive batch runner.'); | 1645 throw new Exception('Unable to find inactive batch runner.'); |
| 1646 } | 1646 } |
| 1647 | 1647 |
| 1648 Future<BrowserTestRunner> _getBrowserTestRunner(TestCase test) { | 1648 Future<BrowserTestRunner> _getBrowserTestRunner(TestCase test) { |
| 1649 var local_ip = test.configuration['local_ip']; | 1649 var local_ip = test.configuration['local_ip']; |
| 1650 var runtime = test.configuration['runtime']; | 1650 var runtime = test.configuration['runtime']; |
| 1651 var num_browsers = test.configuration['tasks']; | 1651 var num_browsers = maxBrowserProcesses; |
| 1652 if (_browserTestRunners[runtime] == null) { | 1652 if (_browserTestRunners[runtime] == null) { |
| 1653 var testRunner = | 1653 var testRunner = |
| 1654 new BrowserTestRunner(local_ip, runtime, num_browsers); | 1654 new BrowserTestRunner(local_ip, runtime, num_browsers); |
| 1655 testRunner.logger = DebugLogger.info; | 1655 testRunner.logger = DebugLogger.info; |
| 1656 _browserTestRunners[runtime] = testRunner; | 1656 _browserTestRunners[runtime] = testRunner; |
| 1657 return testRunner.start().then((started) { | 1657 return testRunner.start().then((started) { |
| 1658 if (started) { | 1658 if (started) { |
| 1659 return testRunner; | 1659 return testRunner; |
| 1660 } | 1660 } |
| 1661 print("Issue starting browser test runner"); | 1661 print("Issue starting browser test runner"); |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1909 } | 1909 } |
| 1910 } | 1910 } |
| 1911 | 1911 |
| 1912 void eventAllTestsDone() { | 1912 void eventAllTestsDone() { |
| 1913 for (var listener in _eventListener) { | 1913 for (var listener in _eventListener) { |
| 1914 listener.allDone(); | 1914 listener.allDone(); |
| 1915 } | 1915 } |
| 1916 } | 1916 } |
| 1917 } | 1917 } |
| 1918 | 1918 |
| OLD | NEW |