Skip to content

Commit

Permalink
Ignore service directories during collecting of runtime test descript…
Browse files Browse the repository at this point in the history
…ors (like .DS_Store)

Signed-off-by: Ivan Kochurkin <[email protected]>
  • Loading branch information
KvanTTT authored and parrt committed Jun 19, 2022
1 parent 1a5045d commit 0247965
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,20 @@ public abstract class RuntimeTests {
assert directoryListing != null;
for (File directory : directoryListing) {
String groupName = directory.getName();
if (groupName.startsWith(".")) {
continue; // Ignore service directories (like .DS_Store in Mac)
}

List<RuntimeTestDescriptor> descriptors = new ArrayList<>();

File[] descriptorFiles = directory.listFiles();
assert descriptorFiles != null;
for (File descriptorFile : descriptorFiles) {
String name = descriptorFile.getName().replace(".txt", "");
if (name.startsWith(".")) {
continue;
}

String text;
try {
text = new String(Files.readAllBytes(descriptorFile.toPath()));
Expand Down

0 comments on commit 0247965

Please sign in to comment.