Changeset 579

Show
Ignore:
Timestamp:
03/22/08 14:49:21 (10 months ago)
Author:
warner@lothar.com
Message:

slave/commands.py: log more information about stdin and PTYs to the 'headers' section

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ChangeLog

    r578 r579  
    112008-03-22  Brian Warner  <warner@lothar.com> 
     2 
     3        * buildbot/slave/commands.py (ShellCommand): record more 
     4        information in the 'header' section: how much we write into stdin, 
     5        do we close stdin, are we using a PTY. There are lingering 
     6        problems with PTYs and with closing stdin (see #198 and #158). 
     7        This doesn't fix those problems, but it should provide more 
     8        information to developers. 
    29 
    310        * buildbot/status/client.py: hush pyflakes, log.msg vs log 
  • buildbot/slave/commands.py

    r565 r579  
    377377        log.msg(" environment: %s" % (self.environ,)) 
    378378        self.sendStatus({'header': msg}) 
     379 
     380        if self.initialStdin: 
     381            msg = " writing %d bytes to stdin" % len(self.initialStdin) 
     382            log.msg(" " + msg) 
     383            self.sendStatus({'header': msg+"\n"}) 
     384 
     385        if self.keepStdinOpen: 
     386            msg = " leaving stdin open" 
     387        else: 
     388            msg = " closing stdin" 
     389        log.msg(" " + msg) 
     390        self.sendStatus({'header': msg+"\n"}) 
     391 
     392        msg = " using PTY: %s" % bool(self.usePTY) 
     393        log.msg(" " + msg) 
     394        self.sendStatus({'header': msg+"\n"}) 
    379395 
    380396        # this will be buffered until connectionMade is called