Skip to content

Commit

Permalink
have 'bazel test' non-test targets depend on --remote_download_output (
Browse files Browse the repository at this point in the history
…#17234)

This fixes #17190

Closes #17195.

PiperOrigin-RevId: 501555041
Change-Id: Ie52f72fb82912dde135eaa56c02d9756eb31365b

Co-authored-by: Anthony Ter-Saakov <[email protected]>
  • Loading branch information
ShreeM01 and antter authored Jan 19, 2023
1 parent c2bfb2e commit 82e3dae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ private boolean shouldDownloadToplevelOutputs(ConfiguredTargetKey configuredTarg
if (configuredTarget instanceof RuleConfiguredTarget) {
var ruleConfiguredTarget = (RuleConfiguredTarget) configuredTarget;
var isTestRule = isTestRuleName(ruleConfiguredTarget.getRuleClassString());
return !isTestRule;
return !isTestRule && downloadToplevel;
}
return true;
return downloadToplevel;
} catch (InterruptedException ignored) {
Thread.currentThread().interrupt();
return false;
Expand Down

0 comments on commit 82e3dae

Please sign in to comment.