macOS: run test_command in shell

Fixes https://github.com/joerick/cibuildwheel/issues/39.
This commit is contained in:
Nikolaus Waxweiler
2018-07-04 15:56:12 +01:00
parent e68400b403
commit 4a0d05df49
+1 -1
View File
@@ -128,7 +128,7 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
# (this ensures that Python runs the tests against the installed wheel
# and not the repo code)
test_command_prepared = prepare_command(test_command, project=abs_project_dir)
call(shlex.split(test_command_prepared), cwd=os.environ['HOME'], env=env)
call(test_command_prepared, cwd=os.environ['HOME'], env=env, shell=True)
# we're all done here; move it to output
shutil.move(delocated_wheel, output_dir)