diff options
author | Ulf Adams <ulfjack@google.com> | 2017-02-09 14:42:37 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2017-02-09 15:12:08 +0000 |
commit | 92f182bd1058ac05db8592d3f390826d2f94ed98 (patch) | |
tree | c21cad5d8b5b09ef12c88d93ebecb1a7415bd723 /src/main/java/com/google/devtools/build/lib/worker/WorkerTestStrategy.java | |
parent | 1509cc8f07228a87184ee032b6a8d624b7d4e189 (diff) |
Remove the first argument of TestStrategy.getArgs.
All callers were performing identical steps before calling getArgs - move the
functionality into getArgs instead.
--
PiperOrigin-RevId: 147028753
MOS_MIGRATED_REVID=147028753
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 | 4 |
1 files changed, 1 insertions, 3 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 030234d359..d4a0fa8140 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 @@ -21,7 +21,6 @@ import com.google.common.collect.ImmutableSet; import com.google.common.collect.Multimap; import com.google.common.hash.HashCode; import com.google.devtools.build.lib.actions.ActionExecutionContext; -import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.actions.ExecException; import com.google.devtools.build.lib.actions.ExecutionStrategy; import com.google.devtools.build.lib.actions.Executor; @@ -193,8 +192,7 @@ public class WorkerTestStrategy extends StandaloneTestStrategy { } private List<String> getStartUpArgs(TestRunnerAction action) throws ExecException { - Artifact testSetup = action.getRuntimeArtifact(TEST_SETUP_BASENAME); - List<String> args = getArgs(testSetup.getExecPathString(), "", action); + List<String> args = getArgs(/*coverageScript=*/ "", action); ImmutableList.Builder<String> startupArgs = ImmutableList.builder(); // Add test setup with no echo to prevent stdout corruption. startupArgs.add(args.get(0)).add("--no_echo"); |