Fix: when using the ut_cmd or Option --testcmd, if the test command line has parameters (added for example with the ut_fun method as in the examples)

this will be lost as just ut_exec[0] was used. Now join the command line before using it in substition.
This commit is contained in:
fedepell 2016-06-11 19:29:48 +02:00 committed by Thomas Nagy
parent 7115404006
commit d202190cd0
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class utest(Task.Task):
testcmd = getattr(self.generator, 'ut_cmd', False) or getattr(Options.options, 'testcmd', False)
if testcmd:
self.ut_exec = (testcmd % self.ut_exec[0]).split(' ')
self.ut_exec = (testcmd % " ".join(self.ut_exec)).split(' ')
proc = Utils.subprocess.Popen(self.ut_exec, cwd=cwd, env=self.get_test_env(), stderr=Utils.subprocess.PIPE, stdout=Utils.subprocess.PIPE)
(stdout, stderr) = proc.communicate()