junit: allow run with working directory $MODULE_DIR$ across multiple modules

This commit is contained in:
Anna Kozlova
2014-01-03 11:54:02 +01:00
parent ed0efd1245
commit 05074bbfd6
@@ -433,7 +433,7 @@ public abstract class TestObject implements JavaCommandLine {
private void appendForkInfo(Executor executor) throws ExecutionException {
final String forkMode = myConfiguration.getForkMode();
if (Comparing.strEqual(forkMode, "none")) {
if (forkPerModule()) {
if (forkPerModule() && getRunnerSettings() != null) {
final String actionName = UIUtil.removeMnemonic(executor.getStartActionText());
throw new CantRunException("'" + actionName + "' is disabled when per-module working directory is configured.<br/>" +
"Please specify single working directory, or change test scope to single module.");