diff options
| author | Mel <mel@rnrd.eu> | 2026-05-28 01:01:47 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2026-05-28 01:01:47 +0200 |
| commit | 7dda10e54ebf303509cb7dcf7a3c60ec2de399d2 (patch) | |
| tree | 8d5473bcadb2be7efd64e892bc6e1cfe89587b73 | |
| parent | 1aef923b312f2bc9c0963381eae8619c187081c6 (diff) | |
| download | catskill-7dda10e54ebf303509cb7dcf7a3c60ec2de399d2.tar.zst catskill-7dda10e54ebf303509cb7dcf7a3c60ec2de399d2.zip | |
Test runner should ignore any hidden files in test folders
Signed-off-by: Mel <mel@rnrd.eu>
| -rw-r--r-- | boot/tests/test.c | 6 |
1 files 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( |
