aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/skyframe/RecursivePkgFunctionTest.java
diff options
context:
space:
mode:
authorGravatar carmi <carmi@google.com>2018-03-13 19:19:16 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-03-13 19:20:35 -0700
commitd6a98282e229b311dd56e65b72003197120f299a (patch)
tree57cd47ee6db179f6cfab1ee26046f991afcbc575 /src/test/java/com/google/devtools/build/lib/skyframe/RecursivePkgFunctionTest.java
parent935d9da083ca0a7e9ee55b53d77a5cbbaf0cd12b (diff)
Allow BazelPackageLoader to load external repositories.
Also, disallow BazelPackageLoader from fetching missing external repos. Integration tests for BazelPackageLoader wrt external repos will be left for a follow-up CL. RELNOTES: None. PiperOrigin-RevId: 188967694
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/skyframe/RecursivePkgFunctionTest.java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/skyframe/RecursivePkgFunctionTest.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/skyframe/RecursivePkgFunctionTest.java b/src/test/java/com/google/devtools/build/lib/skyframe/RecursivePkgFunctionTest.java
index ac45a7e371..679d276e48 100644
--- a/src/test/java/com/google/devtools/build/lib/skyframe/RecursivePkgFunctionTest.java
+++ b/src/test/java/com/google/devtools/build/lib/skyframe/RecursivePkgFunctionTest.java
@@ -51,6 +51,7 @@ public class RecursivePkgFunctionTest extends BuildViewTestCase {
@Before
public final void createSkyframeExecutor() throws Exception {
+ initializeSkyframeExecutor(/*doPackageLoadingChecks=*/ false);
skyframeExecutor = getSkyframeExecutor();
}
@@ -63,7 +64,7 @@ public class RecursivePkgFunctionTest extends BuildViewTestCase {
private RecursivePkgValue buildRecursivePkgValue(Path root, PathFragment rootRelativePath)
throws Exception {
- return buildRecursivePkgValue(root, rootRelativePath, ImmutableSet.<PathFragment>of());
+ return buildRecursivePkgValue(root, rootRelativePath, ImmutableSet.of());
}
private RecursivePkgValue buildRecursivePkgValue(
@@ -139,8 +140,7 @@ public class RecursivePkgFunctionTest extends BuildViewTestCase {
WalkableGraph graph = Preconditions.checkNotNull(evaluationResult.getWalkableGraph());
assertThat(
exists(
- buildRecursivePkgKey(
- rootDirectory, excludedPathFragment, ImmutableSet.<PathFragment>of()),
+ buildRecursivePkgKey(rootDirectory, excludedPathFragment, ImmutableSet.of()),
graph))
.isFalse();
@@ -148,8 +148,7 @@ public class RecursivePkgFunctionTest extends BuildViewTestCase {
// because that key was evaluated.
assertThat(
exists(
- buildRecursivePkgKey(
- rootDirectory, PathFragment.create("a/c"), ImmutableSet.<PathFragment>of()),
+ buildRecursivePkgKey(rootDirectory, PathFragment.create("a/c"), ImmutableSet.of()),
graph))
.isTrue();
}