aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/runtime/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/commands')
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/commands/TestCommand.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/commands/TestCommand.java b/src/main/java/com/google/devtools/build/lib/runtime/commands/TestCommand.java
index 0f384b64a1..0d2ee2e1a7 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/commands/TestCommand.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/commands/TestCommand.java
@@ -57,10 +57,16 @@ import java.util.List;
public class TestCommand implements BlazeCommand {
private AnsiTerminalPrinter printer;
+ /** Returns the name of the command to ask the project file for. */
+ // TODO(hdm): move into BlazeRuntime? It feels odd to duplicate the annotation here.
+ protected String commandName() {
+ return "test";
+ }
+
@Override
public void editOptions(BlazeRuntime runtime, OptionsParser optionsParser)
throws AbruptExitException {
- ProjectFileSupport.handleProjectFiles(runtime, optionsParser, "test");
+ ProjectFileSupport.handleProjectFiles(runtime, optionsParser, commandName());
TestOutputFormat testOutput = optionsParser.getOptions(ExecutionOptions.class).testOutput;