Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Unified Diff: tools/testing/dart/test_progress.dart

Issue 11348060: Revert of commit 14947 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone/io/test_runner_test.dart ('k') | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_progress.dart
diff --git a/tools/testing/dart/test_progress.dart b/tools/testing/dart/test_progress.dart
index 7cd78ac9fdec19e3d684c0f03ec1035729a66c07..528d921b4f72c2e6d0098af577b8c5ee1e86c47e 100644
--- a/tools/testing/dart/test_progress.dart
+++ b/tools/testing/dart/test_progress.dart
@@ -46,7 +46,7 @@ class ProgressIndicator {
}
void done(TestCase test) {
- if (test.isFlaky && test.lastCommandOutput.result != PASS) {
+ if (test.isFlaky && test.output.result != PASS) {
var buf = new StringBuffer();
for (var l in _buildFailureOutput(test)) {
buf.add("$l\n");
@@ -54,7 +54,7 @@ class ProgressIndicator {
_appendToFlakyFile(buf.toString());
}
- if (test.lastCommandOutput.unexpectedOutput) {
+ if (test.output.unexpectedOutput) {
_failedTests++;
_printFailureOutput(test);
} else {
@@ -76,13 +76,13 @@ class ProgressIndicator {
Duration d = (new Date.now()).difference(_startTime);
print('\n--- Total time: ${_timeString(d)} ---');
_tests.sort((a, b) {
- Duration aDuration = a.lastCommandOutput.time;
- Duration bDuration = b.lastCommandOutput.time;
+ Duration aDuration = a.output.time;
+ Duration bDuration = b.output.time;
return bDuration.inMilliseconds - aDuration.inMilliseconds;
});
for (int i = 0; i < 20 && i < _tests.length; i++) {
var name = _tests[i].displayName;
- var duration = _tests[i].lastCommandOutput.time;
+ var duration = _tests[i].output.time;
var configuration = _tests[i].configurationString;
print('${duration} - $configuration $name');
}
@@ -147,9 +147,9 @@ class ProgressIndicator {
expected.add('$expectation ');
}
output.add(expected.toString());
- output.add('Actual: ${test.lastCommandOutput.result}');
- if (!test.lastCommandOutput.hasTimedOut && test.info != null) {
- if (test.lastCommandOutput.incomplete && !test.info.hasCompileError) {
+ output.add('Actual: ${test.output.result}');
+ if (!test.output.hasTimedOut && test.info != null) {
+ if (test.output.incomplete && !test.info.hasCompileError) {
output.add('Unexpected compile-time error.');
} else {
if (test.info.hasCompileError) {
@@ -160,24 +160,24 @@ class ProgressIndicator {
}
}
}
- if (!test.lastCommandOutput.diagnostics.isEmpty) {
+ if (!test.output.diagnostics.isEmpty) {
String prefix = 'diagnostics:';
- for (var s in test.lastCommandOutput.diagnostics) {
+ for (var s in test.output.diagnostics) {
output.add('$prefix ${s}');
prefix = ' ';
}
}
- if (!test.lastCommandOutput.stdout.isEmpty) {
+ if (!test.output.stdout.isEmpty) {
output.add('');
output.add('stdout:');
- for (var s in test.lastCommandOutput.stdout) {
+ for (var s in test.output.stdout) {
output.add(s);
}
}
- if (!test.lastCommandOutput.stderr.isEmpty) {
+ if (!test.output.stderr.isEmpty) {
output.add('');
output.add('stderr:');
- for (var s in test.lastCommandOutput.stderr) {
+ for (var s in test.output.stderr) {
output.add(s);
}
}
@@ -347,7 +347,7 @@ class LineProgressIndicator extends ProgressIndicator {
void _printDoneProgress(TestCase test) {
var status = 'pass';
- if (test.lastCommandOutput.unexpectedOutput) {
+ if (test.output.unexpectedOutput) {
status = 'fail';
}
print('Done ${test.configurationString} ${test.displayName}: $status');
@@ -365,7 +365,7 @@ class VerboseProgressIndicator extends ProgressIndicator {
void _printDoneProgress(TestCase test) {
var status = 'pass';
- if (test.lastCommandOutput.unexpectedOutput) {
+ if (test.output.unexpectedOutput) {
status = 'fail';
}
print('Done ${test.configurationString} ${test.displayName}: $status');
@@ -396,7 +396,7 @@ class BuildbotProgressIndicator extends ProgressIndicator {
void _printDoneProgress(TestCase test) {
var status = 'pass';
- if (test.lastCommandOutput.unexpectedOutput) {
+ if (test.output.unexpectedOutput) {
status = 'fail';
}
var percent = ((_completedTests() / _foundTests) * 100).toInt().toString();
@@ -421,11 +421,11 @@ class DiffProgressIndicator extends ColorProgressIndicator {
: super(startTime, printTiming);
void _printFailureOutput(TestCase test) {
- String status = '${test.displayName}: ${test.lastCommandOutput.result}';
+ String status = '${test.displayName}: ${test.output.result}';
List<String> configs =
statusToConfigs.putIfAbsent(status, () => <String>[]);
configs.add(test.configurationString);
- if (test.lastCommandOutput.hasTimedOut) {
+ if (test.output.hasTimedOut) {
print('\n${test.displayName} timed out on ${test.configurationString}');
}
}
« no previous file with comments | « tests/standalone/io/test_runner_test.dart ('k') | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698