[llvm] r312251 - Revert "[lit] Don't call realpath on the path used for test suite search"
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 31 09:42:30 PDT 2017
Author: rnk
Date: Thu Aug 31 09:42:30 2017
New Revision: 312251
URL: http://llvm.org/viewvc/llvm-project?rev=312251&view=rev
Log:
Revert "[lit] Don't call realpath on the path used for test suite search"
This reverts r312250, it breaks the lit test suite.
Modified:
llvm/trunk/utils/lit/lit/discovery.py
Modified: llvm/trunk/utils/lit/lit/discovery.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/discovery.py?rev=312251&r1=312250&r2=312251&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/discovery.py (original)
+++ llvm/trunk/utils/lit/lit/discovery.py Thu Aug 31 09:42:30 2017
@@ -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):
More information about the llvm-commits
mailing list