]> granicus.if.org Git - llvm/commitdiff
Revert "[lit] Don't call realpath on the path used for test suite search"
authorReid Kleckner <rnk@google.com>
Thu, 31 Aug 2017 16:42:30 +0000 (16:42 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 31 Aug 2017 16:42:30 +0000 (16:42 +0000)
This reverts r312250, it breaks the lit test suite.

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

utils/lit/lit/discovery.py

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