summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/lit')
-rw-r--r--llvm/utils/lit/lit/discovery.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/lit/lit/discovery.py b/llvm/utils/lit/lit/discovery.py
index 07fc30c3063..4befe582d45 100644
--- a/llvm/utils/lit/lit/discovery.py
+++ b/llvm/utils/lit/lit/discovery.py
@@ -57,6 +57,9 @@ def getTestSuite(item, litConfig, cache):
cache[path] = res = search1(path)
return res
+ # Canonicalize the path.
+ item = os.path.realpath(item)
+
# Skip files and virtual components.
components = []
while not os.path.isdir(item):
OpenPOWER on IntegriCloud