diff options
author | Stella Stamenova <stilis@microsoft.com> | 2018-08-06 22:37:53 +0000 |
---|---|---|
committer | Stella Stamenova <stilis@microsoft.com> | 2018-08-06 22:37:53 +0000 |
commit | f0db95499b1ecd06e30ea89cd0393fa59c63b8af (patch) | |
tree | f60f6622b74e3d1a598e3f01da59a9e9cffa310c | |
parent | 38eee643bd1ecc87e9a8b0df1ee43fac88481168 (diff) | |
download | bcm5719-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.cfg | 2 |
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), |