From e3bef0b2fdb83973c146b622a57f0c88641a2a66 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Fri, 2 Oct 2020 13:30:35 -0700 Subject: [PATCH] test: quote the path to the python interpreter This is needed to ensure that paths with spaces don't break the test suite. --- Tests/Functional/lit.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/Functional/lit.cfg b/Tests/Functional/lit.cfg index 2d441430e..07c8a8218 100644 --- a/Tests/Functional/lit.cfg +++ b/Tests/Functional/lit.cfg @@ -13,6 +13,7 @@ import platform import tempfile import sys import lit +import pipes # Set up lit config. config.name = 'SwiftXCTestFunctionalTests' @@ -137,4 +138,4 @@ xctest_checker = os.path.join( config.substitutions.append(('%{xctest_checker}', '%%{python} %s' % xctest_checker)) # Add Python to run xctest_checker.py tests as part of XCTest tests -config.substitutions.append( ('%{python}', sys.executable) ) +config.substitutions.append( ('%{python}', pipes.quote(sys.executable)) )