Skip to content

Commit 02aa0cf

Browse files
authored
Merge pull request #312 from compnerd/quotes
test: quote the path to the python interpreter
2 parents d728b64 + e3bef0b commit 02aa0cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/Functional/lit.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import platform
1313
import tempfile
1414
import sys
1515
import lit
16+
import pipes
1617

1718
# Set up lit config.
1819
config.name = 'SwiftXCTestFunctionalTests'
@@ -137,4 +138,4 @@ xctest_checker = os.path.join(
137138
config.substitutions.append(('%{xctest_checker}', '%%{python} %s' % xctest_checker))
138139

139140
# Add Python to run xctest_checker.py tests as part of XCTest tests
140-
config.substitutions.append( ('%{python}', sys.executable) )
141+
config.substitutions.append( ('%{python}', pipes.quote(sys.executable)) )

0 commit comments

Comments
 (0)