diff options
author | 2016-05-10 15:35:16 +0000 | |
---|---|---|
committer | 2016-05-10 15:58:16 +0000 | |
commit | 1a97ffc92a586623e1b3f82c02ec5dcb23c8d519 (patch) | |
tree | 6c269f8d71b57a7f4f145f67937250e890600970 | |
parent | ddc4e22d8aa6c21ec4fac175f4564571dde7eb3b (diff) |
RELNOTES: Use singular form when appropriate in blaze's test result summary message.
This fixes the output "Executed 1 out of 1 tests".
--
MOS_MIGRATED_REVID=121949576
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/TerminalTestResultNotifier.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/TerminalTestResultNotifier.java b/src/main/java/com/google/devtools/build/lib/runtime/TerminalTestResultNotifier.java index ed8c3569f6..a6d6a08c4c 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/TerminalTestResultNotifier.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/TerminalTestResultNotifier.java @@ -194,9 +194,10 @@ public class TerminalTestResultNotifier implements TestResultNotifier { addFailureToErrorList(results, "locally", stats.failedLocallyCount); addFailureToErrorList(results, "remotely", stats.failedRemotelyCount); addToErrorList(results, "was", "were", "skipped", stats.noStatusCount); - printer.print(String.format("\nExecuted %d out of %d tests: %s.\n", + printer.print(String.format("\nExecuted %d out of %d %s: %s.\n", stats.numberOfExecutedTargets, stats.numberOfTargets, + stats.numberOfTargets == 1 ? "test" : "tests", StringUtil.joinEnglishList(results, "and"))); } else { int failingUpToDateCount = stats.failedCount - stats.noStatusCount; |