Skip to content

Commit

Permalink
Merge jaredgrubb/buildbot:ShellMixinLogs9 (PR #1566)
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Mar 1, 2015
2 parents 6ab32d4 + efa1a3c commit f412772
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions master/buildbot/process/buildstep.py
Expand Up @@ -1091,7 +1091,12 @@ def makeRemoteShellCommand(self, collectStdout=False, collectStderr=False,
kwargs.update(overrides)
stdio = None
if stdioLogName is not None:
stdio = yield self.addLog(stdioLogName)
# Reuse an existing log if possible; otherwise, create one.
try:
stdio = yield self.getLog(stdioLogName)
except KeyError:
stdio = yield self.addLog(stdioLogName)

kwargs['command'] = flatten(kwargs['command'], (list, tuple))

# store command away for display
Expand Down Expand Up @@ -1124,7 +1129,11 @@ def makeRemoteShellCommand(self, collectStdout=False, collectStderr=False,
kwargs['workdir'] = self.workdir

# the rest of the args go to RemoteShellCommand
cmd = remotecommand.RemoteShellCommand(**kwargs)
cmd = remotecommand.RemoteShellCommand(
collectStdout=collectStdout,
collectStderr=collectStderr,
**kwargs
)

# set up logging
if stdio is not None:
Expand Down

0 comments on commit f412772

Please sign in to comment.