diff --git a/plugins/git4idea/tests/git4idea/test/GitTestRunEnv.java b/plugins/git4idea/tests/git4idea/test/GitTestRunEnv.java index 0bdc2f3fa799..b431c355fe33 100644 --- a/plugins/git4idea/tests/git4idea/test/GitTestRunEnv.java +++ b/plugins/git4idea/tests/git4idea/test/GitTestRunEnv.java @@ -25,6 +25,8 @@ import org.jetbrains.annotations.NotNull; import java.io.File; import java.io.IOException; +import java.util.Map; +import java.util.Properties; /** * Environment to run Git. @@ -125,6 +127,18 @@ public class GitTestRunEnv { } } + log("** env:"); + final Map env = System.getenv(); + for (Map.Entry entry : env.entrySet()) { + log(entry.getKey() + " = " + entry.getValue()); + } + log("\n"); + log("\n** props:"); + Properties properties = System.getProperties(); + for (Map.Entry entry : properties.entrySet()) { + log(entry.getKey() + " = " + entry.getValue()); + } + throw new IllegalStateException("Git executable not found. " + "Please define IDEA_TEST_GIT_EXECUTABLE environment variable pointing to the Git executable."); }