Skip to content

Commit e01a98d

Browse files
mkj-gramcommit-bot@chromium.org
authored andcommitted
Write exit code on failures.
Bug: Change-Id: I3ada8f2be879d9a4565d29b16e86b07faa59930a Reviewed-on: https://dart-review.googlesource.com/25981 Commit-Queue: William Hesse <[email protected]> Reviewed-by: William Hesse <[email protected]>
1 parent a6f6671 commit e01a98d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/testing/dart/command_output.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ class CommandOutput extends UniqueObject {
108108

109109
/// Called when producing output for a test failure to describe this output.
110110
void describe(Progress progress, OutputWriter output) {
111+
output.subsection("exit code");
112+
output.write(exitCode.toString());
113+
111114
if (diagnostics.isNotEmpty) {
112115
output.subsection("diagnostics");
113116
output.writeAll(diagnostics);
@@ -512,7 +515,7 @@ class BrowserCommandOutput extends CommandOutput
512515

513516
if (_result.browserOutput.stderr.isNotEmpty) {
514517
output.subsection("Browser stderr");
515-
output.write(_result.browserOutput.stdout.toString());
518+
output.write(_result.browserOutput.stderr.toString());
516519
}
517520
}
518521

0 commit comments

Comments
 (0)