aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/skyframe/SkyframeLabelVisitorTest.java
diff options
context:
space:
mode:
authorGravatar juliexxia <juliexxia@google.com>2018-08-01 11:45:13 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-08-01 11:46:44 -0700
commit651797f4c701e8d298266c69381dedaa8fc81784 (patch)
tree6615ed3aac5abf2d65e8b64ab8376b1f64a27f77 /src/test/java/com/google/devtools/build/lib/skyframe/SkyframeLabelVisitorTest.java
parentc3a08780f72727025c37a56c593a6eb379b07f99 (diff)
Refactor setupPackageCache to get all BuildConfiguration.Options references out of it.
Setting up the package cache is necessary for proper loading. In the future, BuildConfiguration.Option options will be targets that need to be loaded in order to be parsed. Thus, we will need to be able to do loading before BuildConfiguration.Options are parsed. PiperOrigin-RevId: 206964473
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/skyframe/SkyframeLabelVisitorTest.java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/skyframe/SkyframeLabelVisitorTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/skyframe/SkyframeLabelVisitorTest.java b/src/test/java/com/google/devtools/build/lib/skyframe/SkyframeLabelVisitorTest.java
index a665d4055a..bb300907ff 100644
--- a/src/test/java/com/google/devtools/build/lib/skyframe/SkyframeLabelVisitorTest.java
+++ b/src/test/java/com/google/devtools/build/lib/skyframe/SkyframeLabelVisitorTest.java
@@ -415,8 +415,8 @@ public class SkyframeLabelVisitorTest extends SkyframeLabelVisitorTestCase {
loadingMock.getDefaultsPackageContent(),
UUID.randomUUID(),
ImmutableMap.<String, String>of(),
- ImmutableMap.<String, String>of(),
new TimestampGranularityMonitor(BlazeClock.instance()));
+ skyframeExecutor.setActionEnv(ImmutableMap.<String, String>of());
this.visitor = getSkyframeExecutor().pkgLoader();
scratch.file("pkg/BUILD", "sh_library(name = 'x', deps = ['z'])", "sh_library(name = 'z')");
assertLabelsVisited(