From 6d8ea9b422841c209b0fc7edb99fc214bdea0788 Mon Sep 17 00:00:00 2001 From: Sergey Karashevich Date: Fri, 2 Dec 2016 13:01:19 +0300 Subject: [PATCH] [gui-test] change Git user.name and user.email on TeamCity only --- .../src/com/intellij/testGuiFramework/impl/GuiTestCase.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/GuiTestCase.java b/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/GuiTestCase.java index 5f9ac9492688..d4026a072d1e 100644 --- a/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/GuiTestCase.java +++ b/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/GuiTestCase.java @@ -28,6 +28,8 @@ import static com.intellij.testGuiFramework.framework.GuiTestUtil.setUpDefaultPr */ public class GuiTestCase extends GuiTestBase { + public static final boolean IS_UNDER_TEAMCITY = System.getenv("TEAMCITY_VERSION") != null; + public GuiTestCase() { super(); } @@ -40,7 +42,7 @@ public class GuiTestCase extends GuiTestBase { myRobot = new FastRobot(); setIdeSettings(); - GitSettings.INSTANCE.setup(); + if (IS_UNDER_TEAMCITY) GitSettings.INSTANCE.setup(); } @Override