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 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1497 } | 1497 } |
1498 | 1498 |
1499 /** | 1499 /** |
1500 * Perform any cleanup needed once all tests in a TestSuite have completed | 1500 * Perform any cleanup needed once all tests in a TestSuite have completed |
1501 * and notify our progress indicator that we are done. | 1501 * and notify our progress indicator that we are done. |
1502 */ | 1502 */ |
1503 void _cleanupAndMarkDone() { | 1503 void _cleanupAndMarkDone() { |
1504 _allDone(); | 1504 _allDone(); |
1505 if (browserUsed != '' && _seleniumServer != null) { | 1505 if (browserUsed != '' && _seleniumServer != null) { |
1506 _seleniumServer.kill(); | 1506 _seleniumServer.kill(); |
1507 } else { | |
1508 _progress.allDone(); | |
1509 } | 1507 } |
| 1508 _progress.allDone(); |
1510 } | 1509 } |
1511 | 1510 |
1512 void _checkDone() { | 1511 void _checkDone() { |
1513 // When there are no more active test listers ask for more work | 1512 // When there are no more active test listers ask for more work |
1514 // from process queue users. | 1513 // from process queue users. |
1515 if (_activeTestListers == 0) { | 1514 if (_activeTestListers == 0) { |
1516 _enqueueMoreWork(this); | 1515 _enqueueMoreWork(this); |
1517 } | 1516 } |
1518 // If there is still no work, we are done. | 1517 // If there is still no work, we are done. |
1519 if (_activeTestListers == 0) { | 1518 if (_activeTestListers == 0) { |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1751 // the developer doesn't waste his or her time trying to fix a bunch of | 1750 // the developer doesn't waste his or her time trying to fix a bunch of |
1752 // tests that appear to be broken but were actually just flakes that | 1751 // tests that appear to be broken but were actually just flakes that |
1753 // didn't get retried because there had already been one failure. | 1752 // didn't get retried because there had already been one failure. |
1754 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; | 1753 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; |
1755 new RunningProcess(test, allowRetry, this).start(); | 1754 new RunningProcess(test, allowRetry, this).start(); |
1756 } | 1755 } |
1757 _numProcesses++; | 1756 _numProcesses++; |
1758 } | 1757 } |
1759 } | 1758 } |
1760 } | 1759 } |
OLD | NEW |