Passthrough stderr results of clang_tidy when --enable-check-profile. (flutter/engine#44789)

Required to actually see the results of the profile :)
This commit is contained in:
Matan Lurey
2023-08-16 17:58:02 -07:00
committed by GitHub
parent 147fcb7dbe
commit 809b6b8fa0

View File

@@ -359,6 +359,12 @@ class ClangTidy {
_logWithTimestamp('Still running: $sortedJobs');
}
if (job.result.exitCode == 0) {
if (options.enableCheckProfile) {
// stderr is lazily evaluated, so force it to be evaluated here.
final String stderr = job.result.stderr;
_errSink.writeln('Results of --enable-check-profile for ${job.name}:');
_errSink.writeln(stderr);
}
continue;
}
_errSink.writeln('❌ Failures for ${job.name}:');