[lit, python] Always add quotes around the python path in lit
authorStella Stamenova <stilis@microsoft.com>
Mon, 6 Aug 2018 22:37:49 +0000 (22:37 +0000)
committerStella Stamenova <stilis@microsoft.com>
Mon, 6 Aug 2018 22:37:49 +0000 (22:37 +0000)
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, espindola

Subscribers: emaste, sbc100, arichardson, aheejin, steven_wu, dexonsmith, llvm-commits

Differential Revision: https://reviews.llvm.org/D50282

llvm-svn: 339075

lld/test/ELF/lto/cache.ll
lld/test/mach-o/dependency_info.yaml
lld/test/wasm/lto/cache.ll

index 3f2bea9f2cdf83dcf37926b5e8681ac46f3d791f..5ab74f5c5457c7614e43b7d793f1e62035d6ad4e 100644 (file)
@@ -13,7 +13,7 @@
 ; RUN: ls %t.cache | count 4
 
 ; Create a file of size 64KB.
-; RUN: "%python" -c "print(' ' * 65536)" > %t.cache/llvmcache-foo
+; RUN: %python -c "print(' ' * 65536)" > %t.cache/llvmcache-foo
 
 ; This should leave the file in place.
 ; RUN: ld.lld --thinlto-cache-dir=%t.cache --thinlto-cache-policy cache_size_bytes=128k:prune_interval=0s -o %t3 %t2.o %t.o
index 34d688541b919215ea84c47f0bbd68f1a483ee2b..06b269ae1680d7905185170146cd790a923ab851 100644 (file)
@@ -9,7 +9,7 @@
 # RUN:        -F/Custom/Frameworks \
 # RUN:        -framework Bar \
 # RUN:        -framework Foo
-# RUN: '%python' %p/Inputs/DependencyDump.py %t.info | FileCheck %s
+# RUN: %python %p/Inputs/DependencyDump.py %t.info | FileCheck %s
 
 
 # CHECK: linker-vers: lld
index b0a7820c1e19afe4b0015753f76324c9235c6985..9b4aa5d6e2d2d1af65a5a99a9cb1c00c594136db 100644 (file)
@@ -11,7 +11,7 @@
 ; RUN: ls %t.cache | count 4
 
 ; Create a file of size 64KB.
-; RUN: "%python" -c "print(' ' * 65536)" > %t.cache/llvmcache-foo
+; RUN: %python -c "print(' ' * 65536)" > %t.cache/llvmcache-foo
 
 ; This should leave the file in place.
 ; RUN: wasm-ld --thinlto-cache-dir=%t.cache --thinlto-cache-policy cache_size_bytes=128k:prune_interval=0s -o %t.wasm %t2.o %t.o