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 1646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1657 } | 1657 } |
1658 | 1658 |
1659 Future _terminateBatchRunners() { | 1659 Future _terminateBatchRunners() { |
1660 var futures = new List(); | 1660 var futures = new List(); |
1661 for (var runners in _batchProcesses.values) { | 1661 for (var runners in _batchProcesses.values) { |
1662 for (var runner in runners) { | 1662 for (var runner in runners) { |
1663 futures.add(runner.terminate()); | 1663 futures.add(runner.terminate()); |
1664 } | 1664 } |
1665 } | 1665 } |
1666 // Change to Future.wait when updating binaries. | 1666 // Change to Future.wait when updating binaries. |
1667 return Futures.wait(futures); | 1667 return Future.wait(futures); |
1668 } | 1668 } |
1669 | 1669 |
1670 BatchRunnerProcess _getBatchRunner(TestCase test) { | 1670 BatchRunnerProcess _getBatchRunner(TestCase test) { |
1671 // Start batch processes if needed | 1671 // Start batch processes if needed |
1672 var compiler = test.configuration['compiler']; | 1672 var compiler = test.configuration['compiler']; |
1673 var runners = _batchProcesses[compiler]; | 1673 var runners = _batchProcesses[compiler]; |
1674 if (runners == null) { | 1674 if (runners == null) { |
1675 runners = new List<BatchRunnerProcess>(_maxProcesses); | 1675 runners = new List<BatchRunnerProcess>(_maxProcesses); |
1676 for (int i = 0; i < _maxProcesses; i++) { | 1676 for (int i = 0; i < _maxProcesses; i++) { |
1677 runners[i] = new BatchRunnerProcess(test); | 1677 runners[i] = new BatchRunnerProcess(test); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1748 // the developer doesn't waste his or her time trying to fix a bunch of | 1748 // the developer doesn't waste his or her time trying to fix a bunch of |
1749 // tests that appear to be broken but were actually just flakes that | 1749 // tests that appear to be broken but were actually just flakes that |
1750 // didn't get retried because there had already been one failure. | 1750 // didn't get retried because there had already been one failure. |
1751 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; | 1751 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; |
1752 new RunningProcess(test, allowRetry, this).start(); | 1752 new RunningProcess(test, allowRetry, this).start(); |
1753 } | 1753 } |
1754 _numProcesses++; | 1754 _numProcesses++; |
1755 } | 1755 } |
1756 } | 1756 } |
1757 } | 1757 } |
OLD | NEW |