diff options
author | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2016-07-08 08:34:12 +0200 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2016-07-09 14:18:26 +1000 |
commit | d793097d2032ca0ab2d5cf93fa84730865db6c03 (patch) | |
tree | a638479a52dbd112ad676201a2041c67126ddfef /rtems.py | |
parent | 254b827bb9ee977a3e7ed729af3444a002e2f05e (diff) |
Fix the --show-commands option.
If the --show-commands is set, the cmd-string is joined for printing.
This breaks a later Popen call that expects an array instead of an fully
assembled string. This patch fixes the problem.
Diffstat (limited to 'rtems.py')
-rw-r--r-- | rtems.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -571,8 +571,8 @@ def output_command_line(): if isinstance(cmd, str): Logs.info('%s' % cmd) else: - cmd = ' '.join(cmd) - Logs.info('(%d) %s' % (len(cmd), cmd)) # here is the change + cmdstr = ' '.join(cmd) + Logs.info('(%d) %s' % (len(cmdstr), cmdstr)) # here is the change Logs.debug('runner_env: kw=%s' % kw) try: if self.logger: |