From 7ef96d778a0baf8c4e3a06bf50a4651e3e8bf1fe Mon Sep 17 00:00:00 2001 From: Eric Fellheimer Date: Thu, 12 Nov 2015 02:28:44 +0000 Subject: Allow package blacklisting to be done via a file checked into the depot. By default this is disabled. -- MOS_MIGRATED_REVID=107644420 --- .../build/lib/skyframe/ContainingPackageLookupFunctionTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/test/java/com/google/devtools/build/lib/skyframe/ContainingPackageLookupFunctionTest.java') 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 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.of()); + PrecomputedValue.BLACKLISTED_PACKAGE_PREFIXES_FILE.set(differencer, + PathFragment.EMPTY_FRAGMENT); } private ContainingPackageLookupValue lookupContainingPackage(String packageName) -- cgit v1.2.3