summaryrefslogtreecommitdiff
path: root/utils/lit
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-09-18 23:36:35 +0000
committerZachary Turner <zturner@google.com>2017-09-18 23:36:35 +0000
commit36409f332619d1ee97147eb96160f53a0d5f707d (patch)
tree2d91280a006cddadd6ffeccaed04177ea128b83a /utils/lit
parent2865ab6996164e7854d55c9e21c065fad7c26569 (diff)
[lit] Use realpath when adding to the config map.
Since the path a user specifies to the llvm-lit script might be different than the source tree they built from (since they could be behind different symlinks), we need to use realpath to make sure that path comparisons work as expected. Even better would be to use a custom dictionary comparison with actual file equivalence comparison semantics, but this is the least friction to unbreak things for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313594 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit')
-rw-r--r--utils/lit/lit/discovery.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/lit/lit/discovery.py b/utils/lit/lit/discovery.py
index a5902d365df..e276829db39 100644
--- a/utils/lit/lit/discovery.py
+++ b/utils/lit/lit/discovery.py
@@ -48,6 +48,7 @@ def getTestSuite(item, litConfig, cache):
# configuration to load instead.
config_map = litConfig.params.get('config_map')
if config_map:
+ cfgpath = os.path.realpath(cfgpath)
cfgpath = os.path.normpath(cfgpath)
cfgpath = os.path.normcase(cfgpath)
target = config_map.get(cfgpath)