| 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. |
| 11 */ | 11 */ |
| 12 #library("test_runner"); | 12 #library("test_runner"); |
| 13 | 13 |
| 14 #import("dart:io"); | 14 #import("dart:io"); |
| 15 #import("dart:isolate"); |
| 15 #import("status_file_parser.dart"); | 16 #import("status_file_parser.dart"); |
| 16 #import("test_progress.dart"); | 17 #import("test_progress.dart"); |
| 17 #import("test_suite.dart"); | 18 #import("test_suite.dart"); |
| 18 | 19 |
| 19 final int NO_TIMEOUT = 0; | 20 final int NO_TIMEOUT = 0; |
| 20 | 21 |
| 21 /** A command executed as a step in a test case. */ | 22 /** A command executed as a step in a test case. */ |
| 22 class Command { | 23 class Command { |
| 23 /** Path to the executable of this command. */ | 24 /** Path to the executable of this command. */ |
| 24 String executable; | 25 String executable; |
| (...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1177 // the developer doesn't waste his or her time trying to fix a bunch of | 1178 // the developer doesn't waste his or her time trying to fix a bunch of |
| 1178 // tests that appear to be broken but were actually just flakes that | 1179 // tests that appear to be broken but were actually just flakes that |
| 1179 // didn't get retried because there had already been one failure. | 1180 // didn't get retried because there had already been one failure. |
| 1180 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; | 1181 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; |
| 1181 new RunningProcess(test, allowRetry, this).start(); | 1182 new RunningProcess(test, allowRetry, this).start(); |
| 1182 } | 1183 } |
| 1183 _numProcesses++; | 1184 _numProcesses++; |
| 1184 } | 1185 } |
| 1185 } | 1186 } |
| 1186 } | 1187 } |
| OLD | NEW |