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/test/BugPoint | |
| 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/test/BugPoint')
| -rw-r--r-- | llvm/test/BugPoint/compile-custom.ll | 2 | ||||
| -rw-r--r-- | llvm/test/BugPoint/unsymbolized.ll | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/BugPoint/compile-custom.ll b/llvm/test/BugPoint/compile-custom.ll index 00447094374..cb82a01383e 100644 --- a/llvm/test/BugPoint/compile-custom.ll +++ b/llvm/test/BugPoint/compile-custom.ll @@ -1,4 +1,4 @@ -; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext --compile-custom --compile-command="%python %/s.py arg1 arg2" --opt-command opt --output-prefix %t %s | FileCheck %s +; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext --compile-custom --compile-command="%/s.py arg1 arg2" --opt-command opt --output-prefix %t %s | FileCheck %s ; REQUIRES: loadable_module ; Test that arguments are correctly passed in --compile-command. The output diff --git a/llvm/test/BugPoint/unsymbolized.ll b/llvm/test/BugPoint/unsymbolized.ll index ae47682195b..da26b9dc480 100644 --- a/llvm/test/BugPoint/unsymbolized.ll +++ b/llvm/test/BugPoint/unsymbolized.ll @@ -2,7 +2,7 @@ ; RUN: echo "import sys" > %t.py ; RUN: echo "print('args = ' + str(sys.argv))" >> %t.py ; RUN: echo "exit(1)" >> %t.py -; RUN: not bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -opt-command="%python" -opt-args %t.py | FileCheck %s +; RUN: not bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -opt-command=%python -opt-args %t.py | FileCheck %s ; RUN: not --crash opt -load %llvmshlibdir/BugpointPasses%shlibext %s -bugpoint-crashcalls -disable-symbolication 2>&1 | FileCheck --check-prefix=CRASH %s ; RUN: not bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -opt-command=%t.non.existent.opt.binary -opt-args %t.py 2>&1 | FileCheck %s --check-prefix=BAD-OPT |

