summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/lit/lit/discovery.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/utils/lit/lit/discovery.py b/llvm/utils/lit/lit/discovery.py
index 4befe582d45..ea6143d8166 100644
--- a/llvm/utils/lit/lit/discovery.py
+++ b/llvm/utils/lit/lit/discovery.py
@@ -52,13 +52,14 @@ def getTestSuite(item, litConfig, cache):
def search(path):
# Check for an already instantiated test suite.
- res = cache.get(path)
+ real_path = os.path.realpath(path)
+ res = cache.get(real_path)
if res is None:
- cache[path] = res = search1(path)
+ cache[real_path] = res = search1(path)
return res
# Canonicalize the path.
- item = os.path.realpath(item)
+ item = os.path.normpath(item)
# Skip files and virtual components.
components = []
OpenPOWER on IntegriCloud