diff --git a/plugins/maven/src/main/java/org/jetbrains/idea/maven/execution/MavenJUnitPatcher.java b/plugins/maven/src/main/java/org/jetbrains/idea/maven/execution/MavenJUnitPatcher.java index cb612cebdc1c..7636a02fe98b 100644 --- a/plugins/maven/src/main/java/org/jetbrains/idea/maven/execution/MavenJUnitPatcher.java +++ b/plugins/maven/src/main/java/org/jetbrains/idea/maven/execution/MavenJUnitPatcher.java @@ -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()) {