mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[test framework] Retry failed tests filter: empty filter file should be ignored
GitOrigin-RevId: 9b36d5a6ac349253999ed8920cfc75db32280961
This commit is contained in:
committed by
intellij-monorepo-bot
parent
61f6de7e09
commit
ca108bdca5
@@ -211,9 +211,11 @@ public class TestCaseLoader {
|
||||
return null;
|
||||
}
|
||||
|
||||
private static @NotNull TestClassesFilter loadTestsFilterFromFile(Path path, boolean linesArePatterns) {
|
||||
private static @Nullable TestClassesFilter loadTestsFilterFromFile(Path path, boolean linesArePatterns) {
|
||||
try {
|
||||
List<String> lines = Files.readAllLines(path);
|
||||
if (lines.isEmpty()) return null;
|
||||
if (ContainerUtil.and(lines, String::isBlank)) return null;
|
||||
return linesArePatterns ? new PatternListTestClassFilter(lines) : new NameListTestClassFilter(lines);
|
||||
}
|
||||
catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user