mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
java tests: restore compatibility with jtreg plugin
This commit is contained in:
@@ -125,6 +125,14 @@ public abstract class JavaTestFrameworkRunnableState<T extends
|
||||
@NotNull
|
||||
@Override
|
||||
public ExecutionResult execute(@NotNull Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
|
||||
return startSMRunner(executor);
|
||||
}
|
||||
|
||||
/**
|
||||
* to be removed in 2017.1, compatibility with jtreg plugin
|
||||
*/
|
||||
@Deprecated
|
||||
protected ExecutionResult startSMRunner(Executor executor) throws ExecutionException {
|
||||
final RunnerSettings runnerSettings = getRunnerSettings();
|
||||
|
||||
final SMTRunnerConsoleProperties testConsoleProperties = getConfiguration().createTestConsoleProperties(executor);
|
||||
@@ -369,12 +377,10 @@ public abstract class JavaTestFrameworkRunnableState<T extends
|
||||
|
||||
protected void createTempFiles(JavaParameters javaParameters) {
|
||||
try {
|
||||
myWorkingDirsFile = FileUtil.createTempFile("idea_working_dirs_" + getFrameworkId(), ".tmp");
|
||||
myWorkingDirsFile.deleteOnExit();
|
||||
myWorkingDirsFile = FileUtil.createTempFile("idea_working_dirs_" + getFrameworkId(), ".tmp", true);
|
||||
javaParameters.getProgramParametersList().add("@w@" + myWorkingDirsFile.getAbsolutePath());
|
||||
|
||||
myTempFile = FileUtil.createTempFile("idea_" + getFrameworkId(), ".tmp");
|
||||
myTempFile.deleteOnExit();
|
||||
myTempFile = FileUtil.createTempFile("idea_" + getFrameworkId(), ".tmp", true);
|
||||
passTempFile(javaParameters.getProgramParametersList(), myTempFile.getAbsolutePath());
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user