aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/runtime/commands
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2015-03-31 16:42:09 +0000
committerGravatar Laurent Le Brun <laurentlb@google.com>2015-03-31 20:12:16 +0000
commit81cacd78ec026b1cc5406896bcbcbc116553ed3e (patch)
treee2052fdbe28e2e1f73afbb5da2ba3a481b36a9bd /src/main/java/com/google/devtools/build/lib/runtime/commands
parent422c731fbefb098962813b3e0914a9192c72e549 (diff)
Supply the correct command name to ProjectFileSupport.
-- MOS_MIGRATED_REVID=89973895
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;