diff options
author | 2016-06-16 10:04:25 +0000 | |
---|---|---|
committer | 2016-06-16 13:06:20 +0000 | |
commit | 9b1fb68ea8882aaaacac1d9ee854f50f85eeefa5 (patch) | |
tree | ee29b0fd8da34f5715c86728a47b8be466247e17 /src | |
parent | 2652976eb140836f459415be3ba908d86d77079f (diff) |
--
MOS_MIGRATED_REVID=125042781
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/buildtool/ExecutionTool.java | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/buildtool/ExecutionTool.java b/src/main/java/com/google/devtools/build/lib/buildtool/ExecutionTool.java index 9fb061587a..a07fb9de73 100644 --- a/src/main/java/com/google/devtools/build/lib/buildtool/ExecutionTool.java +++ b/src/main/java/com/google/devtools/build/lib/buildtool/ExecutionTool.java @@ -249,17 +249,14 @@ public class ExecutionTool { } } - // If tests are to be run during build, too, we have to explicitly load the test action context. - if (request.shouldRunTests()) { - String testStrategyValue = request.getOptions(ExecutionOptions.class).testStrategy; - ActionContext context = strategyConverter.getStrategy(TestActionContext.class, - testStrategyValue); - if (context == null) { - throw makeExceptionForInvalidStrategyValue(testStrategyValue, "test", - strategyConverter.getValidValues(TestActionContext.class)); - } - strategies.add(context); + String testStrategyValue = request.getOptions(ExecutionOptions.class).testStrategy; + ActionContext context = strategyConverter.getStrategy(TestActionContext.class, + testStrategyValue); + if (context == null) { + throw makeExceptionForInvalidStrategyValue(testStrategyValue, "test", + strategyConverter.getValidValues(TestActionContext.class)); } + strategies.add(context); } private static ImmutableList<ActionContextConsumer> getActionContextConsumersFromModules( |