Add an override to `TestExecutorBuilder` to pass options as a list.
@@ -41,6 +41,7 @@ import com.google.devtools.build.lib.vfs.Path;
import com.google.devtools.common.options.OptionsBase;
import com.google.devtools.common.options.OptionsParser;
import com.google.devtools.common.options.OptionsParsingException;
+import java.util.List;
/**
* Builder for the test instance of the {@link BlazeExecutor} class.
@@ -87,6 +88,11 @@ public class TestExecutorBuilder {
return this;
}
+ public TestExecutorBuilder parseOptions(List<String> options) throws OptionsParsingException {
+ this.optionsParser.parse(options);
+ return this;
+ }
+
/**
* Makes the given action context available in the execution phase.
*
