Fix hang on successful dev/bots/analyze.dart (#117660)

Fixes #117659

It turns out this was due to the output-suppression timer introduced
recently as part of cleaning up the output (#109206); on success, the
script would wait 10 minutes for the timeout to expire.  This didn't
affect CI because this feature doesn't apply in CI (as detected by
lack of color on stdout.)

Fix the issue by cleaning up the timer on success in the same way
as on failure.

While here, clean up the final summary messages slightly,
and also cut the trailing space that printProgress was leaving
on each line.
This commit is contained in:
Greg Price
2023-02-07 16:04:23 -08:00
committed by GitHub
parent aed9b4adce
commit 98b3e48ed4
4 changed files with 16 additions and 11 deletions

View File

@@ -271,11 +271,9 @@ Future<void> main(List<String> args) async {
system.exit(255);
}
if (hasError) {
printProgress('${bold}Test failed.$reset');
reportErrorsAndExit();
reportErrorsAndExit('${bold}Test failed.$reset');
}
printProgress('${bold}Test successful.$reset');
system.exit(0);
reportSuccessAndExit('${bold}Test successful.$reset');
}
final String _luciBotId = Platform.environment['SWARMING_BOT_ID'] ?? '';