diff options
author | 2017-12-13 05:59:14 -0800 | |
---|---|---|
committer | 2017-12-13 06:01:09 -0800 | |
commit | 0cb19440ed18754875f3582bb6a0780c5aa0751a (patch) | |
tree | 11ef0e1021bfc0dd1b1799fae632210893487e3b /src/main/java/com/google/devtools/build/lib/rules/test/TestAttempt.java | |
parent | a3b8e3972379f7e32f7c72c298ee20d8127f9aff (diff) |
Allow access to some TestAttempt fields for testing
PiperOrigin-RevId: 178893146
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/test/TestAttempt.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/test/TestAttempt.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/test/TestAttempt.java b/src/main/java/com/google/devtools/build/lib/rules/test/TestAttempt.java index 14a0f108a4..a2bb74ddab 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/test/TestAttempt.java +++ b/src/main/java/com/google/devtools/build/lib/rules/test/TestAttempt.java @@ -14,7 +14,9 @@ package com.google.devtools.build.lib.rules.test; +import com.google.common.annotations.VisibleForTesting; import com.google.common.collect.ImmutableList; +import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.analysis.test.TestResult; import com.google.devtools.build.lib.analysis.test.TestRunnerAction; import com.google.devtools.build.lib.buildeventstream.BuildEvent; @@ -131,6 +133,16 @@ public class TestAttempt implements BuildEvent { true); } + @VisibleForTesting + public Artifact getTestStatusArtifact() { + return testAction.getCacheStatusArtifact(); + } + + @VisibleForTesting + public Collection<Pair<String, Path>> getFiles() { + return files; + } + @Override public BuildEventId getEventId() { return BuildEventId.testResult( |