Skip to content

Commit

Permalink
Report failure count only if failures are seen
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Apr 21, 2022
1 parent 465f2e1 commit 065e559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/run-clang-tidy-on-compile-commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,8 @@ def Check(self):
task_queue.join()

logging.info("Successfully processed %d path(s)", self.state.successes)
logging.warning("Failed to process %d path(s)", self.state.failures)
if self.state.failures:
logging.warning("Failed to process %d path(s)", self.state.failures)
logging.warning("The following paths failed clang-tidy checks:")
for name in self.state.failed_files:
logging.warning(" - %s", name)
Expand Down

0 comments on commit 065e559

Please sign in to comment.