From 3a40095df2fd042e403677b1b8416ba0f71c88be Mon Sep 17 00:00:00 2001 From: "Stephan T. Lavavej" Date: Thu, 15 Feb 2024 21:30:58 -0800 Subject: [PATCH] Handle paths case-insensitively when running tests --- tests/utils/stl/test/format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils/stl/test/format.py b/tests/utils/stl/test/format.py index 042112cef1..e5e5b2774d 100644 --- a/tests/utils/stl/test/format.py +++ b/tests/utils/stl/test/format.py @@ -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