summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Stamenova <stilis@microsoft.com>2018-08-06 22:37:53 +0000
committerStella Stamenova <stilis@microsoft.com>2018-08-06 22:37:53 +0000
commitf0db95499b1ecd06e30ea89cd0393fa59c63b8af (patch)
treef60f6622b74e3d1a598e3f01da59a9e9cffa310c
parent38eee643bd1ecc87e9a8b0df1ee43fac88481168 (diff)
downloadbcm5719-llvm-f0db95499b1ecd06e30ea89cd0393fa59c63b8af.tar.gz
bcm5719-llvm-f0db95499b1ecd06e30ea89cd0393fa59c63b8af.zip
[lit, python] Always add quotes around the python path in lit
Summary: The issue with the python path is that the path to python on Windows can contain spaces. To make the tests always work, the path to python needs to be surrounded by quotes. This is a companion change to: https://reviews.llvm.org/D50206 Reviewers: asmith, zturner Differential Revision: https://reviews.llvm.org/D50280 llvm-svn: 339076
-rw-r--r--lldb/lit/lit.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/lit/lit.cfg b/lldb/lit/lit.cfg
index 7e1fcf7520c..98d69bb4c81 100644
--- a/lldb/lit/lit.cfg
+++ b/lldb/lit/lit.cfg
@@ -54,7 +54,7 @@ config.environment['LLVM_SRC_ROOT'] = getattr(config, 'llvm_src_root', '')
config.environment['PYTHON_EXECUTABLE'] = getattr(config, 'python_executable', '')
# Register substitutions
-config.substitutions.append(('%python', config.python_executable))
+config.substitutions.append(('%python', "'%s'" % (config.python_executable)))
debugserver = lit.util.which('debugserver', lldb_tools_dir)
lldb = "%s -S %s/lit-lldb-init" % (lit.util.which('lldb', lldb_tools_dir),
OpenPOWER on IntegriCloud