diff options
author | Michajlo Matijkiw <michajlo@google.com> | 2015-02-26 16:39:01 +0000 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@google.com> | 2015-02-26 16:39:01 +0000 |
commit | 8f7358a32428a83324195c8783664281ee2fc3b0 (patch) | |
tree | e99f4ab2876191b63f8d9feb358ef26fd9282aec /src/main/java/com/google | |
parent | 6682a318a75c4d19e4202753265af64eba5f340b (diff) |
fix bug in test-specific top-level artifact helper behavior
A recent change resulted in TopLevelArtifactHelper.getTopLevelArtifacts()
returning an empty result when passed TopLevelArtifactContext.DEFAULT.
This only happens in tests and wasn't caught because tests were never
fully checking the results. Update MultiGroupForgeResourceAccountantTest
to better consider/expose this failure and fixed.
--
MOS_MIGRATED_REVID=87254923
Diffstat (limited to 'src/main/java/com/google')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java b/src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java index f2ce36240d..8fc77743c1 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java @@ -26,10 +26,6 @@ import java.util.Set; @Immutable public final class TopLevelArtifactContext { - public static final TopLevelArtifactContext DEFAULT = new TopLevelArtifactContext( - /*runTestsExclusively=*/false, - /*outputGroups=*/ImmutableSortedSet.<String>of()); - private final boolean runTestsExclusively; private final ImmutableSortedSet<String> outputGroups; |