diff options
author | Ulf Adams <ulfjack@google.com> | 2016-04-29 15:04:13 +0000 |
---|---|---|
committer | Yun Peng <pcloudy@google.com> | 2016-04-29 15:53:26 +0000 |
commit | 94f6330d9908b155d4f10a4b4a5769fee779711e (patch) | |
tree | 4b99524e3d512b936671b186054553bccd329d0f /src/test/java/com/google/devtools/build/lib/skyframe/TimestampBuilderTestCase.java | |
parent | c26a8f5bfc887ce221ccfaae71622f029e5f38a1 (diff) |
Push some functionality from FoundationTestCase to where it's actually used.
--
MOS_MIGRATED_REVID=121116897
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/skyframe/TimestampBuilderTestCase.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/skyframe/TimestampBuilderTestCase.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/skyframe/TimestampBuilderTestCase.java b/src/test/java/com/google/devtools/build/lib/skyframe/TimestampBuilderTestCase.java index 894c53c30d..e1d2b5edcc 100644 --- a/src/test/java/com/google/devtools/build/lib/skyframe/TimestampBuilderTestCase.java +++ b/src/test/java/com/google/devtools/build/lib/skyframe/TimestampBuilderTestCase.java @@ -119,7 +119,7 @@ public abstract class TimestampBuilderTestCase extends FoundationTestCase { return action; } - protected Builder createBuilder(ActionCache actionCache) { + protected Builder createBuilder(ActionCache actionCache) throws Exception { return createBuilder(actionCache, 1, /*keepGoing=*/ false); } @@ -128,7 +128,7 @@ public abstract class TimestampBuilderTestCase extends FoundationTestCase { * specified ActionCache. */ protected Builder createBuilder( - final ActionCache actionCache, final int threadCount, final boolean keepGoing) { + ActionCache actionCache, final int threadCount, final boolean keepGoing) throws Exception { return createBuilder(actionCache, threadCount, keepGoing, null); } @@ -136,7 +136,7 @@ public abstract class TimestampBuilderTestCase extends FoundationTestCase { final ActionCache actionCache, final int threadCount, final boolean keepGoing, - @Nullable EvaluationProgressReceiver evaluationProgressReceiver) { + @Nullable EvaluationProgressReceiver evaluationProgressReceiver) throws Exception { AtomicReference<PathPackageLocator> pkgLocator = new AtomicReference<>(new PathPackageLocator(outputBase, ImmutableList.of(rootDirectory))); AtomicReference<TimestampGranularityMonitor> tsgmRef = new AtomicReference<>(tsgm); @@ -151,6 +151,7 @@ public abstract class TimestampBuilderTestCase extends FoundationTestCase { new SkyframeActionExecutor( ResourceManager.instance(), eventBusRef, new AtomicReference<>(statusReporter)); + Path actionOutputBase = scratch.dir("/usr/local/google/_blaze_jrluser/FAKEMD5/action_out/"); skyframeActionExecutor.setActionLogBufferPathGenerator( new ActionLogBufferPathGenerator(actionOutputBase)); @@ -289,14 +290,14 @@ public abstract class TimestampBuilderTestCase extends FoundationTestCase { /** * Creates and returns a new "amnesiac" builder based on the amnesiac cache. */ - protected Builder amnesiacBuilder() { + protected Builder amnesiacBuilder() throws Exception { return createBuilder(AMNESIAC_CACHE); } /** * Creates and returns a new caching builder based on the inMemoryCache. */ - protected Builder cachingBuilder() { + protected Builder cachingBuilder() throws Exception { return createBuilder(inMemoryCache); } |