From b2e2c4b8a908087bf8e2c2b6d875073c23ec9bd0 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Thu, 31 Aug 2017 16:35:08 +0000 Subject: [PATCH] [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 --- utils/lit/lit/discovery.py | 3 --- 1 file changed, 3 deletions(-) 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): -- 2.50.1