IDEA-75255 Relief remote debugging of tests running under teamcity

Don't try to load unspecified test group definitions file
This commit is contained in:
Denis.Zhdanov
2011-10-13 13:04:58 +04:00
parent dd92ae374f
commit 43123076f7
@@ -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 = "";