Quote path to Python 3 executable in case it contains spaces

This commit is contained in:
Reid Kleckner 2019-10-31 15:23:45 -07:00
parent 7ac4c31762
commit f9061049c1

View File

@ -99,7 +99,7 @@ if lldb_path is not None:
# Produce dexter path, lldb path, and combine into the %dexter substitution
dexter_path = os.path.join(config.debuginfo_tests_src_root,
'dexter', 'dexter.py')
dexter_cmd = '{} {} test'.format(config.python3_executable, dexter_path)
dexter_cmd = '"{}" "{}" test'.format(config.python3_executable, dexter_path)
if lldb_path is not None:
dexter_cmd += ' --lldb-executable {}'.format(lldb_path)