summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-08-31 16:42:30 +0000
committerReid Kleckner <rnk@google.com>2017-08-31 16:42:30 +0000
commit0148e6f3919356435cb0ce604226d30d64941870 (patch)
tree686e1e55a03c10f293803c12351ebc9daf653842
parent27ad04f66f40f01a4960c965991fb47e387936cb (diff)
downloadbcm5719-llvm-0148e6f3919356435cb0ce604226d30d64941870.tar.gz
bcm5719-llvm-0148e6f3919356435cb0ce604226d30d64941870.zip
Revert "[lit] Don't call realpath on the path used for test suite search"
This reverts r312250, it breaks the lit test suite. llvm-svn: 312251
-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