| 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 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1143 print('Error on batch runner input stream stdin'); | 1143 print('Error on batch runner input stream stdin'); |
| 1144 print(' Input line: $line'); | 1144 print(' Input line: $line'); |
| 1145 print(' Previous test\'s status: $_status'); | 1145 print(' Previous test\'s status: $_status'); |
| 1146 print(' Error: $err'); | 1146 print(' Error: $err'); |
| 1147 throw err; | 1147 throw err; |
| 1148 }; | 1148 }; |
| 1149 _process.stdin.write(line.charCodes); | 1149 _process.stdin.write(line.charCodes); |
| 1150 } | 1150 } |
| 1151 | 1151 |
| 1152 String _createArgumentsLine(List<String> arguments) { | 1152 String _createArgumentsLine(List<String> arguments) { |
| 1153 return arguments.join(' ').concat('\n'); | 1153 return arguments.join(' ') + '\n'; |
| 1154 } | 1154 } |
| 1155 | 1155 |
| 1156 void _reportResult() { | 1156 void _reportResult() { |
| 1157 if (!active) return; | 1157 if (!active) return; |
| 1158 // _status == '>>> TEST {PASS, FAIL, OK, CRASH, FAIL, TIMEOUT}' | 1158 // _status == '>>> TEST {PASS, FAIL, OK, CRASH, FAIL, TIMEOUT}' |
| 1159 | 1159 |
| 1160 var outcome = _status.split(" ")[2]; | 1160 var outcome = _status.split(" ")[2]; |
| 1161 var exitCode = 0; | 1161 var exitCode = 0; |
| 1162 if (outcome == "CRASH") exitCode = CRASHING_BROWSER_EXITCODE; | 1162 if (outcome == "CRASH") exitCode = CRASHING_BROWSER_EXITCODE; |
| 1163 if (outcome == "FAIL" || outcome == "TIMEOUT") exitCode = 1; | 1163 if (outcome == "FAIL" || outcome == "TIMEOUT") exitCode = 1; |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1746 completer.complete(testCase); | 1746 completer.complete(testCase); |
| 1747 } | 1747 } |
| 1748 }); | 1748 }); |
| 1749 } | 1749 } |
| 1750 runCommand(); | 1750 runCommand(); |
| 1751 | 1751 |
| 1752 return completer.future; | 1752 return completer.future; |
| 1753 } | 1753 } |
| 1754 } | 1754 } |
| 1755 | 1755 |
| OLD | NEW |