From 43123076f7d87dca24718e175b40150e182466a0 Mon Sep 17 00:00:00 2001 From: "Denis.Zhdanov" Date: Thu, 13 Oct 2011 13:02:28 +0400 Subject: [PATCH] IDEA-75255 Relief remote debugging of tests running under teamcity Don't try to load unspecified test group definitions file --- platform/testFramework/src/com/intellij/TestCaseLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/testFramework/src/com/intellij/TestCaseLoader.java b/platform/testFramework/src/com/intellij/TestCaseLoader.java index 9e24e832aea3..7ad2b70a33b9 100644 --- a/platform/testFramework/src/com/intellij/TestCaseLoader.java +++ b/platform/testFramework/src/com/intellij/TestCaseLoader.java @@ -60,7 +60,7 @@ public class TestCaseLoader { private final String[] slowTestNames; public TestCaseLoader(String classFilterName) { - InputStream excludedStream = getClass().getClassLoader().getResourceAsStream(classFilterName); + InputStream excludedStream = StringUtil.isEmpty(classFilterName) ? null : getClass().getClassLoader().getResourceAsStream(classFilterName); String preconfiguredGroup = System.getProperty(TARGET_TEST_GROUP); if (preconfiguredGroup == null || "".equals(preconfiguredGroup.trim())) { myTestGroupName = "";