Skip to content

Commit

Permalink
Handle paths case-insensitively when running tests (#4395)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanTLavavej authored Feb 27, 2024
1 parent c53ac59 commit 8d3be34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils/stl/test/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _getEnvLst(sourcePath, localConfig):
def _isLegalDirectory(sourcePath, test_subdirs):
for prefix in test_subdirs:
common = os.path.normpath(os.path.commonpath((sourcePath, prefix)))
if common == sourcePath or common == prefix:
if os.path.samefile(common, sourcePath) or os.path.samefile(common, prefix):
return True

return False
Expand Down

0 comments on commit 8d3be34

Please sign in to comment.