Skip to content

Commit

Permalink
Merge pull request #2408 from dinatale2/upstream/logenviron-mastershell
Browse files Browse the repository at this point in the history
Add logEnviron flag to MasterShellCommand
  • Loading branch information
Mikhail Sobolev committed Sep 23, 2016
2 parents 122f7da + adc172c commit fc42c14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion master/buildbot/steps/master.py
Expand Up @@ -50,6 +50,7 @@ def __init__(self, command, **kwargs):
self.env = kwargs.pop('env', None)
self.usePTY = kwargs.pop('usePTY', 0)
self.interruptSignal = kwargs.pop('interruptSignal', 'KILL')
self.logEnviron = kwargs.pop('logEnviron', True)

BuildStep.__init__(self, **kwargs)

Expand Down Expand Up @@ -139,7 +140,9 @@ def subst(match):
"lists; key '%s' is incorrect" % (key,))
newenv[key] = p.sub(subst, env[key])
env = newenv
stdio_log.addHeader(" env: %r\n" % (env,))

if self.logEnviron:
stdio_log.addHeader(" env: %r\n" % (env,))

# TODO add a timeout?
self.process = reactor.spawnProcess(self.LocalPP(self), argv[0], argv,
Expand Down

0 comments on commit fc42c14

Please sign in to comment.