From: Reid Kleckner Date: Thu, 31 Aug 2017 16:35:08 +0000 (+0000) Subject: [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=b2e2c4b8a908087bf8e2c2b6d875073c23ec9bd0;p=llvm [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312250 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/lit/lit/discovery.py b/utils/lit/lit/discovery.py index 4befe582d45..07fc30c3063 100644 --- a/utils/lit/lit/discovery.py +++ b/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):