| 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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 // One of the steps failed. | 620 // One of the steps failed. |
| 621 stderr.add('test.dart: Compilation failed$suffix, exit code $exitCode\n'); | 621 stderr.add('test.dart: Compilation failed$suffix, exit code $exitCode\n'); |
| 622 testComplete(exitCode, true); | 622 testComplete(exitCode, true); |
| 623 } else { | 623 } else { |
| 624 // One compilation step successfully completed, move on to the | 624 // One compilation step successfully completed, move on to the |
| 625 // next step. | 625 // next step. |
| 626 stderr.add('test.dart: Compilation finished $suffix\n'); | 626 stderr.add('test.dart: Compilation finished $suffix\n'); |
| 627 stdout.add('test.dart: Compilation finished $suffix\n'); | 627 stdout.add('test.dart: Compilation finished $suffix\n'); |
| 628 if (currentStep == totalSteps - 1 && testCase.usesWebDriver && | 628 if (currentStep == totalSteps - 1 && testCase.usesWebDriver && |
| 629 !testCase.configuration['noBatch']) { | 629 !testCase.configuration['noBatch']) { |
| 630 // Note: processQueue will always be non-null for runtime == ie9, ff, | 630 // Note: processQueue will always be non-null for runtime == ie9, ie10, |
| 631 // safari, chrome, opera. (It is only null for runtime == vm) | 631 // ff, safari, chrome, opera. (It is only null for runtime == vm) |
| 632 // This RunningProcess object is done, and hands over control to | 632 // This RunningProcess object is done, and hands over control to |
| 633 // BatchRunner.startTest(), which handles reporting, etc. | 633 // BatchRunner.startTest(), which handles reporting, etc. |
| 634 timeoutTimer.cancel(); | 634 timeoutTimer.cancel(); |
| 635 processQueue._getBatchRunner(testCase).startTest(testCase); | 635 processQueue._getBatchRunner(testCase).startTest(testCase); |
| 636 } else { | 636 } else { |
| 637 runCommand(testCase.commands[currentStep++], stepExitHandler); | 637 runCommand(testCase.commands[currentStep++], stepExitHandler); |
| 638 } | 638 } |
| 639 } | 639 } |
| 640 } | 640 } |
| 641 | 641 |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1271 // the developer doesn't waste his or her time trying to fix a bunch of | 1271 // the developer doesn't waste his or her time trying to fix a bunch of |
| 1272 // tests that appear to be broken but were actually just flakes that | 1272 // tests that appear to be broken but were actually just flakes that |
| 1273 // didn't get retried because there had already been one failure. | 1273 // didn't get retried because there had already been one failure. |
| 1274 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; | 1274 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; |
| 1275 new RunningProcess(test, allowRetry, this).start(); | 1275 new RunningProcess(test, allowRetry, this).start(); |
| 1276 } | 1276 } |
| 1277 _numProcesses++; | 1277 _numProcesses++; |
| 1278 } | 1278 } |
| 1279 } | 1279 } |
| 1280 } | 1280 } |
| OLD | NEW |