summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-08-31 16:35:08 +0000
committerReid Kleckner <rnk@google.com>2017-08-31 16:35:08 +0000
commit27ad04f66f40f01a4960c965991fb47e387936cb (patch)
treece87f71fe11e85ebb4f4c642b0276c3fec566366 /llvm/utils/lit
parent2307f86c4734efbda99c49688621bfa0189c3757 (diff)
downloadbcm5719-llvm-27ad04f66f40f01a4960c965991fb47e387936cb.tar.gz
bcm5719-llvm-27ad04f66f40f01a4960c965991fb47e387936cb.zip
[lit] Don't call realpath on the path used for test suite search
This preserves symlinks in paths, so that someone can symlink more tests into a larger test suite. For example, debuginfo-tests is currently designed to be checked out into clang/test. With this change, it can be symlinked into place instead, which works better with the monorepo. llvm-svn: 312250
Diffstat (limited to 'llvm/utils/lit')
-rw-r--r--llvm/utils/lit/lit/discovery.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/utils/lit/lit/discovery.py b/llvm/utils/lit/lit/discovery.py
index 4befe582d45..07fc30c3063 100644
--- a/llvm/utils/lit/lit/discovery.py
+++ b/llvm/utils/lit/lit/discovery.py
@@ -57,9 +57,6 @@ 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