From: Reid Kleckner Date: Thu, 31 Aug 2017 16:42:30 +0000 (+0000) Subject: Revert "[lit] Don't call realpath on the path used for test suite search" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44fb142cab216caf094a59e721f454587806c2d9;p=llvm Revert "[lit] Don't call realpath on the path used for test suite search" 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 --- diff --git a/utils/lit/lit/discovery.py b/utils/lit/lit/discovery.py index 07fc30c3063..4befe582d45 100644 --- a/utils/lit/lit/discovery.py +++ b/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):