]> granicus.if.org Git - llvm/commit
[lit] Make symlinks in test paths work a different way
authorReid Kleckner <rnk@google.com>
Thu, 31 Aug 2017 17:07:35 +0000 (17:07 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 31 Aug 2017 17:07:35 +0000 (17:07 +0000)
commit93d5c695d8f477aad07a9cdce37f87a9d6558978
tree08e59cf6fcab7f3e854dfb86a2c364f073fe14b3
parentc3f43cf233e55cd47cc1b114a833a88dfbe88eaf
[lit] Make symlinks in test paths work a different way

Use os.path.normpath instead of realpath to collapse '..' and '.' path
components. Use realpath when caching search results about a path for
good measure.

I considered rigging up a test involving symlinks for this, but I doubt
I can check a symlink into SVN. The test would have to conditionally
create a symlink at runtime if the host OS supports it. This sounds too
fragile and complicated to me to be worth it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312254 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/discovery.py