| 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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 return false; | 396 return false; |
| 397 } | 397 } |
| 398 | 398 |
| 399 bool _didStandardTestFail(List errors, List staticWarnings) { | 399 bool _didStandardTestFail(List errors, List staticWarnings) { |
| 400 bool hasFatalTypeErrors = false; | 400 bool hasFatalTypeErrors = false; |
| 401 int numStaticTypeAnnotations = 0; | 401 int numStaticTypeAnnotations = 0; |
| 402 int numCompileTimeAnnotations = 0; | 402 int numCompileTimeAnnotations = 0; |
| 403 var isStaticClean = false; | 403 var isStaticClean = false; |
| 404 if (testCase.info != null) { | 404 if (testCase.info != null) { |
| 405 var optionsFromFile = testCase.info.optionsFromFile; | 405 var optionsFromFile = testCase.info.optionsFromFile; |
| 406 hasFatalTypeErrors = optionsFromFile['hasFatalTypeErrors']; | 406 hasFatalTypeErrors = testCase.info.hasFatalTypeErrors; |
| 407 for (Command c in testCase.commands) { | 407 for (Command c in testCase.commands) { |
| 408 for (String arg in c.arguments) { | 408 for (String arg in c.arguments) { |
| 409 if (arg == '--fatal-type-errors') { | 409 if (arg == '--fatal-type-errors') { |
| 410 hasFatalTypeErrors = true; | 410 hasFatalTypeErrors = true; |
| 411 break; | 411 break; |
| 412 } | 412 } |
| 413 } | 413 } |
| 414 } | 414 } |
| 415 numStaticTypeAnnotations = optionsFromFile['numStaticTypeAnnotations']; | 415 numStaticTypeAnnotations = optionsFromFile['numStaticTypeAnnotations']; |
| 416 numCompileTimeAnnotations = optionsFromFile['numCompileTimeAnnotations']; | 416 numCompileTimeAnnotations = optionsFromFile['numCompileTimeAnnotations']; |
| (...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1179 // the developer doesn't waste his or her time trying to fix a bunch of | 1179 // the developer doesn't waste his or her time trying to fix a bunch of |
| 1180 // tests that appear to be broken but were actually just flakes that | 1180 // tests that appear to be broken but were actually just flakes that |
| 1181 // didn't get retried because there had already been one failure. | 1181 // didn't get retried because there had already been one failure. |
| 1182 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; | 1182 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; |
| 1183 new RunningProcess(test, allowRetry, this).start(); | 1183 new RunningProcess(test, allowRetry, this).start(); |
| 1184 } | 1184 } |
| 1185 _numProcesses++; | 1185 _numProcesses++; |
| 1186 } | 1186 } |
| 1187 } | 1187 } |
| 1188 } | 1188 } |
| OLD | NEW |