Fix about 20 tests on Windows.
Passing the argument string from dosep to dotest was failing on Windows due to the fact that Windows uses \ for its path separator. As a result, shlex.split() was treating it as an escape character. This fixes the issue by telling shlex.split() to not use posix mode when running on Windows. llvm-svn: 225195
This commit is contained in:
parent
502b7b4b36
commit
f6896b09b4
|
@ -64,8 +64,11 @@ def process_dir(root, files, test_root, dotest_options):
|
|||
if os.path.islink(path):
|
||||
continue
|
||||
|
||||
command = ([sys.executable, "%s/dotest.py" % test_root] +
|
||||
(shlex.split(dotest_options) if dotest_options else []) +
|
||||
script_file = os.path.join(test_root, "dotest.py")
|
||||
is_posix = (os.name == "posix")
|
||||
split_args = shlex.split(dotest_options, posix=is_posix) if dotest_options else []
|
||||
command = ([sys.executable, script_file] +
|
||||
split_args +
|
||||
["-p", name, root])
|
||||
|
||||
timeout_name = os.path.basename(os.path.splitext(name)[0]).upper()
|
||||
|
|
Loading…
Reference in New Issue