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
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):