Skip to content

fix: handle trailing slashes in example test runner#117

Merged
crowecawcaw merged 1 commit intoOpenJobDescription:mainlinefrom
crowecawcaw:trialingslash
Mar 16, 2026
Merged

fix: handle trailing slashes in example test runner#117
crowecawcaw merged 1 commit intoOpenJobDescription:mainlinefrom
crowecawcaw:trialingslash

Conversation

@crowecawcaw
Copy link
Contributor

With the example test runner, when a trailing slash was included in the test pattern argument (e.g., 2023-09/EXPR/), the path split produced an empty string for the test type filter, causing fnmatch to match zero test directories and silently reporting 0 passed, 0 failed. This was confusing because the same pattern without the trailing slash worked correctly. Fixed by stripping trailing slashes from the pattern before splitting it into parts.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Signed-off-by: Stephen Crowe <6042774+crowecawcaw@users.noreply.github.com>
@crowecawcaw crowecawcaw requested a review from a team as a code owner March 16, 2026 19:49
@crowecawcaw crowecawcaw merged commit 47a470f into OpenJobDescription:mainline Mar 16, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants