Inspect test environment on fucking Mac agent

This commit is contained in:
Roman Shevchenko
2012-08-25 19:40:33 +04:00
parent 87be8693d2
commit f11b2a8550
@@ -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<String, String> env = System.getenv();
for (Map.Entry<String, String> entry : env.entrySet()) {
log(entry.getKey() + " = " + entry.getValue());
}
log("\n");
log("\n** props:");
Properties properties = System.getProperties();
for (Map.Entry<Object, Object> 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.");
}