From 7dda10e54ebf303509cb7dcf7a3c60ec2de399d2 Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 28 May 2026 01:01:47 +0200 Subject: Test runner should ignore any hidden files in test folders Signed-off-by: Mel --- boot/tests/test.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/boot/tests/test.c b/boot/tests/test.c index 051dbc4..9082eb3 100644 --- a/boot/tests/test.c +++ b/boot/tests/test.c @@ -488,10 +488,8 @@ tests(const ascii* base_path, const ascii* base_command, bool adjust) struct dirent* dir_entry; while ((dir_entry = readdir(dir)) != NULL) { - // skip . and .. - if (strcmp(dir_entry->d_name, ".") == 0 || strcmp(dir_entry->d_name, "..") == 0) { - continue; - } + // skip `.`, `..`, and any hidden files, these are definitely not tests. + if (dir_entry->d_name[0] == '.') continue; char test_definition_path[MAX_PATH_LENGTH]; snprintf( -- cgit 1.4.1