}
@Override
- public GeneralCommandLine generateCommandLine() {
+ public GeneralCommandLine generateCommandLine() {
GeneralCommandLine cmd = super.generateCommandLine();
setWorkingDirectory(cmd);
}
protected void setWorkingDirectory(@NotNull final GeneralCommandLine cmd) {
- final String workingDirectory = myConfiguration.getWorkingDirectory();
- if (!StringUtil.isEmptyOrSpaces(workingDirectory)) {
- cmd.withWorkDirectory(workingDirectory);
- }
- else if (myConfiguration instanceof AbstractPythonTestRunConfiguration) {
- final AbstractPythonTestRunConfiguration configuration = (AbstractPythonTestRunConfiguration)myConfiguration;
- cmd.withWorkDirectory(configuration.getWorkingDirectorySafe());
+ String workingDirectory = myConfiguration.getWorkingDirectory();
+ if (StringUtil.isEmptyOrSpaces(workingDirectory)) {
+ workingDirectory = myConfiguration.getWorkingDirectorySafe();
}
+ cmd.withWorkDirectory(workingDirectory);
}
@Override
return executionResult;
}
- protected void addBeforeParameters(GeneralCommandLine cmd) {}
+ protected void addBeforeParameters(GeneralCommandLine cmd) {}
+
protected void addAfterParameters(GeneralCommandLine cmd) {}
- protected void addTestRunnerParameters(GeneralCommandLine cmd) {
+ protected void addTestRunnerParameters(GeneralCommandLine cmd) {
ParamsGroup scriptParams = cmd.getParametersList().getParamsGroup(GROUP_SCRIPT);
assert scriptParams != null;
getRunner().addToGroup(scriptParams, cmd);
}
protected abstract HelperPackage getRunner();
+
@NotNull
protected abstract List<String> getTestSpecs();
}