diff options
author | 2016-12-16 14:31:42 +0000 | |
---|---|---|
committer | 2016-12-16 15:37:54 +0000 | |
commit | b21cfa12b83072bcb6d7e700542e7051a7d21bce (patch) | |
tree | a1f51046f42c7651f491cd8d5ec6d7c245eee563 /src/main/java/com/google/devtools/build/lib/worker/WorkerTestStrategy.java | |
parent | c8ac9187b0e62f9758095e479d85680c6f5c780c (diff) |
Continued TestStrategy refactoring.
More renaming and some reformatting to make StandaloneTestStrategy more
closely resemble the internal implementation of TestStrategy.
--
PiperOrigin-RevId: 142254302
MOS_MIGRATED_REVID=142254302
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/worker/WorkerTestStrategy.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/worker/WorkerTestStrategy.java | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/worker/WorkerTestStrategy.java b/src/main/java/com/google/devtools/build/lib/worker/WorkerTestStrategy.java index cf073065a0..29a23fe66e 100644 --- a/src/main/java/com/google/devtools/build/lib/worker/WorkerTestStrategy.java +++ b/src/main/java/com/google/devtools/build/lib/worker/WorkerTestStrategy.java @@ -77,28 +77,23 @@ public class WorkerTestStrategy extends StandaloneTestStrategy { } @Override - protected TestResultData execute( + protected TestResultData executeTest( + TestRunnerAction action, ActionExecutionContext actionExecutionContext, Map<String, String> environment, - TestRunnerAction action, Path execRoot, Path runfilesDir) throws ExecException, InterruptedException, IOException { List<String> startupArgs = getStartUpArgs(action); return execInWorker( - actionExecutionContext, - environment, - action, - startupArgs, - execRoot, - maxRetries); + action, actionExecutionContext, environment, startupArgs, execRoot, maxRetries); } private TestResultData execInWorker( + TestRunnerAction action, ActionExecutionContext actionExecutionContext, Map<String, String> environment, - TestRunnerAction action, List<String> startupArgs, Path execRoot, int retriesLeft) @@ -177,12 +172,7 @@ public class WorkerTestStrategy extends StandaloneTestStrategy { + e + "), invalidating and retrying with new worker...")); return execInWorker( - actionExecutionContext, - environment, - action, - startupArgs, - execRoot, - retriesLeft - 1); + action, actionExecutionContext, environment, startupArgs, execRoot, retriesLeft - 1); } else { throw new TestExecException(e.getMessage()); } |