]> granicus.if.org Git - llvm/commitdiff
[lit] Don't call realpath on the path used for test suite search
authorReid Kleckner <rnk@google.com>
Thu, 31 Aug 2017 16:35:08 +0000 (16:35 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 31 Aug 2017 16:35:08 +0000 (16:35 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312250 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/discovery.py

index 4befe582d454c37dfb33c1f302793695bafa0fe0..07fc30c30634b74eb4b9a7f464859f244cc22219 100644 (file)
@@ -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):