IDEA-131624 Unit tests run from within IDEA are missing system properties defined in pom

This commit is contained in:
Vladislav.Soroka
2014-10-21 13:15:16 +04:00
parent 2f327d83d2
commit 41d54c3f7e
@@ -63,7 +63,7 @@ public class MavenJUnitPatcher extends JUnitPatcher {
}
}
if (testRunningSettings.isPassEnvironmentVariables() && isEnabled("systemPropertyVariables")) {
if (testRunningSettings.isPassSystemProperties() && isEnabled("systemPropertyVariables")) {
Element systemPropertyVariables = config.getChild("systemPropertyVariables");
if (systemPropertyVariables != null) {
for (Element element : systemPropertyVariables.getChildren()) {