summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/tests
diff options
context:
space:
mode:
authorStella Stamenova <stilis@microsoft.com>2018-08-07 04:08:46 +0000
committerStella Stamenova <stilis@microsoft.com>2018-08-07 04:08:46 +0000
commit9ca5db090405b0f2c155792f228b6ed0899f1946 (patch)
tree0a29698adf3af9a53fff87dcb4da121cd9d9c069 /llvm/utils/lit/tests
parent1b222cea08a319c6c961f9230a09ddb52a20e59c (diff)
downloadbcm5719-llvm-9ca5db090405b0f2c155792f228b6ed0899f1946.tar.gz
bcm5719-llvm-9ca5db090405b0f2c155792f228b6ed0899f1946.zip
[lit, tests] Fix failing lit test: shtest-format.py
Summary: The problem here is that on windows double quotes are used for paths (usually) while single quotes are not. This is not generally a problem for the tests because the lit infrastructure tends to treat both the same. One (and possibly only) exception is when some tests are run in an external shell such as some of the shtest-format tests. In this case on windows the path to python was not created correctly because it had single quotes and the test failed. This same test is already failing with python 3 which is why our testing missed the new failure. This patch will take care of the immediate failure with python 2 and I'll send a follow up for the python 3 failure. Reviewers: asmith, zturner Subscribers: delcypher, llvm-commits Differential Revision: https://reviews.llvm.org/D50373 llvm-svn: 339091
Diffstat (limited to 'llvm/utils/lit/tests')
-rw-r--r--llvm/utils/lit/tests/Inputs/shtest-format/lit.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/lit/tests/Inputs/shtest-format/lit.cfg b/llvm/utils/lit/tests/Inputs/shtest-format/lit.cfg
index 607538e901a..38c3da3d3cd 100644
--- a/llvm/utils/lit/tests/Inputs/shtest-format/lit.cfg
+++ b/llvm/utils/lit/tests/Inputs/shtest-format/lit.cfg
@@ -6,4 +6,4 @@ config.test_source_root = None
config.test_exec_root = None
config.target_triple = 'x86_64-unknown-unknown'
config.available_features.add('a-present-feature')
-config.substitutions.append(('%{python}', "'%s'" % (sys.executable)))
+config.substitutions.append(('%{python}', '"%s"' % (sys.executable)))
OpenPOWER on IntegriCloud