diff options
| author | Stella Stamenova <stilis@microsoft.com> | 2018-08-06 22:37:44 +0000 |
|---|---|---|
| committer | Stella Stamenova <stilis@microsoft.com> | 2018-08-06 22:37:44 +0000 |
| commit | cc2404c01d40df744baf1bdffd554b6bcf10815a (patch) | |
| tree | 24026c4a5ff60cfab079e7f323b690fd62bb0777 /llvm/utils/lit/tests/Inputs/shtest-timeout | |
| parent | a29e76244a6afcd90aaae83591ead1dc3a085b06 (diff) | |
| download | bcm5719-llvm-cc2404c01d40df744baf1bdffd554b6bcf10815a.tar.gz bcm5719-llvm-cc2404c01d40df744baf1bdffd554b6bcf10815a.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 change updates several configuration files which specify the path to python as a substitution and also remove quotes from existing tests.
Reviewers: asmith, zturner, alexshap, jakehehrlich
Reviewed By: zturner, alexshap, jakehehrlich
Subscribers: mehdi_amini, nemanjai, eraman, kbarton, jakehehrlich, steven_wu, dexonsmith, stella.stamenova, delcypher, llvm-commits
Differential Revision: https://reviews.llvm.org/D50206
llvm-svn: 339073
Diffstat (limited to 'llvm/utils/lit/tests/Inputs/shtest-timeout')
| -rw-r--r-- | llvm/utils/lit/tests/Inputs/shtest-timeout/lit.cfg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/lit/tests/Inputs/shtest-timeout/lit.cfg b/llvm/utils/lit/tests/Inputs/shtest-timeout/lit.cfg index c3a1c3b96ad..74f6771b923 100644 --- a/llvm/utils/lit/tests/Inputs/shtest-timeout/lit.cfg +++ b/llvm/utils/lit/tests/Inputs/shtest-timeout/lit.cfg @@ -29,4 +29,4 @@ config.test_exec_root = config.test_source_root config.target_triple = '(unused)' src_root = os.path.join(config.test_source_root, '..') config.environment['PYTHONPATH'] = src_root -config.substitutions.append(('%{python}', sys.executable)) +config.substitutions.append(('%{python}', "'%s'" % (sys.executable))) |

