|
14 | 14 |
|
15 | 15 | package com.google.devtools.build.lib.analysis.test;
|
16 | 16 |
|
17 |
| -import static com.google.devtools.build.lib.analysis.BaseRuleClasses.TEST_RUNNER_EXEC_GROUP; |
18 | 17 | import static com.google.devtools.build.lib.packages.BuildType.LABEL;
|
19 | 18 |
|
20 | 19 | import com.google.common.base.Preconditions;
|
21 | 20 | import com.google.common.collect.ImmutableList;
|
22 | 21 | import com.google.common.collect.Lists;
|
23 | 22 | import com.google.devtools.build.lib.actions.ActionInput;
|
24 |
| -import com.google.devtools.build.lib.actions.ActionOwner; |
25 | 23 | import com.google.devtools.build.lib.actions.Artifact;
|
26 | 24 | import com.google.devtools.build.lib.actions.ArtifactRoot;
|
27 | 25 | import com.google.devtools.build.lib.actions.RunfilesSupplier;
|
@@ -148,11 +146,6 @@ private boolean isPersistentTestRunner() {
|
148 | 146 | && persistentTestRunnerRunfiles != null;
|
149 | 147 | }
|
150 | 148 |
|
151 |
| - private ActionOwner getOwner() { |
152 |
| - ActionOwner owner = ruleContext.getActionOwner(TEST_RUNNER_EXEC_GROUP); |
153 |
| - return owner == null ? ruleContext.getActionOwner() : owner; |
154 |
| - } |
155 |
| - |
156 | 149 | /**
|
157 | 150 | * Creates a test action and artifacts for the given rule. The test action will use the specified
|
158 | 151 | * executable and runfiles.
|
@@ -391,7 +384,7 @@ private TestParams createTestAction(int shards) throws InterruptedException {
|
391 | 384 | boolean splitCoveragePostProcessing = testConfiguration.splitCoveragePostProcessing();
|
392 | 385 | TestRunnerAction testRunnerAction =
|
393 | 386 | new TestRunnerAction(
|
394 |
| - getOwner(), |
| 387 | + ruleContext.getActionOwner(), |
395 | 388 | inputs,
|
396 | 389 | testRunfilesSupplier,
|
397 | 390 | testActionExecutable,
|
|
0 commit comments