Test runner: if analyzer crashes, ensure stack trace is printed

Change-Id: I61e2b7348ac121db07dfc8500ce6808b57bbecbb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222404
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
This commit is contained in:
Paul Berry 2021-12-08 18:05:50 +00:00 committed by Commit Bot
parent c7de515ac9
commit 6153e0536b

View file

@ -684,8 +684,10 @@ class AnalysisCommandOutput extends CommandOutput with _StaticErrorOutput {
@override
void describe(TestCase testCase, Progress progress, OutputWriter output) {
if (invalidJsonStdout != null) {
output.subsection("analyzer json parse result");
output.write("- parse failed");
output.subsection("invalid analyzer json");
output.write(invalidJsonStdout);
super.describe(testCase, progress, output);
return;
}