diff options
author | Eric Fellheimer <felly@google.com> | 2015-11-12 02:28:44 +0000 |
---|---|---|
committer | Laszlo Csomor <laszlocsomor@google.com> | 2015-11-12 09:03:01 +0000 |
commit | 7ef96d778a0baf8c4e3a06bf50a4651e3e8bf1fe (patch) | |
tree | 6160e79f854d50c5e76ab845cef10b62f21b8be8 /src/test/java/com/google/devtools/build/lib/skyframe/ContainingPackageLookupFunctionTest.java | |
parent | cbb69f247adc1901ef6b7b52a6f12192f6131f72 (diff) |
Allow package blacklisting to be done via a file checked into the depot. By default this is disabled.
--
MOS_MIGRATED_REVID=107644420
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/skyframe/ContainingPackageLookupFunctionTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/skyframe/ContainingPackageLookupFunctionTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/skyframe/ContainingPackageLookupFunctionTest.java b/src/test/java/com/google/devtools/build/lib/skyframe/ContainingPackageLookupFunctionTest.java index 0c80029e82..72a47a5067 100644 --- a/src/test/java/com/google/devtools/build/lib/skyframe/ContainingPackageLookupFunctionTest.java +++ b/src/test/java/com/google/devtools/build/lib/skyframe/ContainingPackageLookupFunctionTest.java @@ -57,6 +57,8 @@ public class ContainingPackageLookupFunctionTest extends FoundationTestCase { Map<SkyFunctionName, SkyFunction> skyFunctions = new HashMap<>(); skyFunctions.put(SkyFunctions.PACKAGE_LOOKUP, new PackageLookupFunction(deletedPackages)); skyFunctions.put(SkyFunctions.CONTAINING_PACKAGE_LOOKUP, new ContainingPackageLookupFunction()); + skyFunctions.put(SkyFunctions.BLACKLISTED_PACKAGE_PREFIXES, + new BlacklistedPackagePrefixesFunction()); skyFunctions.put(SkyFunctions.FILE_STATE, new FileStateFunction(tsgm, externalFilesHelper)); skyFunctions.put(SkyFunctions.FILE, new FileFunction(pkgLocator, tsgm, externalFilesHelper)); RecordingDifferencer differencer = new RecordingDifferencer(); @@ -64,7 +66,8 @@ public class ContainingPackageLookupFunctionTest extends FoundationTestCase { driver = new SequentialBuildDriver(evaluator); PrecomputedValue.BUILD_ID.set(differencer, UUID.randomUUID()); PrecomputedValue.PATH_PACKAGE_LOCATOR.set(differencer, pkgLocator.get()); - PrecomputedValue.BLACKLISTED_PKG_PREFIXES.set(differencer, ImmutableSet.<PathFragment>of()); + PrecomputedValue.BLACKLISTED_PACKAGE_PREFIXES_FILE.set(differencer, + PathFragment.EMPTY_FRAGMENT); } private ContainingPackageLookupValue lookupContainingPackage(String packageName) |