Replacing leftover test_command.format(...) by prepare_command(test_command, ...) in linux.py

This commit is contained in:
Yannick Jadoul
2018-04-08 16:50:10 +02:00
parent 99469087ed
commit e33b6bed77
+1 -1
View File
@@ -103,7 +103,7 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
pybin_paths=' '.join(c.path+'/bin' for c in platform_configs),
test_requires=' '.join(test_requires),
test_command=shlex_quote(
test_command.format(python='python', pip='pip', project='/project') if test_command else ''
prepare_command(test_command, python='python', pip='pip', project='/project') if test_command else ''
),
before_build=shlex_quote(
prepare_command(before_build, python='python', pip='pip', project='/project') if before_build else ''