summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/test/lit.cfg3
-rw-r--r--lld/test/mach-o/dependency_info.yaml2
2 files changed, 4 insertions, 1 deletions
diff --git a/lld/test/lit.cfg b/lld/test/lit.cfg
index e518dc7162d..54f08f4da2e 100644
--- a/lld/test/lit.cfg
+++ b/lld/test/lit.cfg
@@ -177,6 +177,9 @@ for pattern in tool_patterns:
tool_path = llvm_tools_dir + '/' + tool_name
config.substitutions.append((pattern, tool_pipe + tool_path))
+# Add site-specific substitutions.
+config.substitutions.append( ('%python', config.python_executable) )
+
###
# When running under valgrind, we mangle '-vg' onto the end of the triple so we
diff --git a/lld/test/mach-o/dependency_info.yaml b/lld/test/mach-o/dependency_info.yaml
index dcce4381dfd..4ddb1811fcf 100644
--- a/lld/test/mach-o/dependency_info.yaml
+++ b/lld/test/mach-o/dependency_info.yaml
@@ -14,7 +14,7 @@
# RUN: -F/Custom/Frameworks \
# RUN: -framework Bar \
# RUN: -framework Foo
-# RUN: python %p/Inputs/DependencyDump.py %t.info | FileCheck %s
+# RUN: %python %p/Inputs/DependencyDump.py %t.info | FileCheck %s
# CHECK: linker-vers: lld
OpenPOWER on IntegriCloud