aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2015-03-18 12:27:18 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2015-03-18 13:49:21 +0000
commit7e43acf937b99322c3c6d80963634271908b8fcc (patch)
tree24ffca97e817399b7f7d24f049ed858c35e53385 /src/main/java/com/google/devtools/build
parentafcf028c2f63ec09de34c44594ebc68f1e158438 (diff)
Test execution time warning contains target name. The rest of the message is shortened.
-- MOS_MIGRATED_REVID=88922152
Diffstat (limited to 'src/main/java/com/google/devtools/build')
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/TestResultAnalyzer.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/TestResultAnalyzer.java b/src/main/java/com/google/devtools/build/lib/runtime/TestResultAnalyzer.java
index 211192ea31..33a228c9a1 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/TestResultAnalyzer.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/TestResultAnalyzer.java
@@ -326,15 +326,16 @@ public class TestResultAnalyzer {
TestSize expectedSize = TestSize.getTestSize(expectedTimeout);
if (verbose) {
StringBuilder builder = new StringBuilder(String.format(
- "Test execution time (%.1fs excluding execution overhead) outside of "
+ "%s: Test execution time (%.1fs excluding execution overhead) outside of "
+ "range for %s tests. Consider setting timeout=\"%s\"",
+ target.getLabel(),
maxTimeOfShard / 1000.0,
specifiedTimeout.prettyPrint(),
expectedTimeout));
if (expectedSize != null) {
builder.append(" or size=\"").append(expectedSize).append("\"");
}
- builder.append(". You need not modify the size if you think it is correct.");
+ builder.append(".");
warnings.add(builder.toString());
return false;
}