[Buildbot-commits] buildbot/buildbot/test test_vc.py,1.57,1.58
Brian Warner
warner at users.sourceforge.net
Mon Jun 12 08:36:24 UTC 2006
Update of /cvsroot/buildbot/buildbot/buildbot/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17041/buildbot/test
Modified Files:
test_vc.py
Log Message:
[project @ test_vc.py: conditionalize some debug prints]
Original author: warner at lothar.com
Date: 2006-06-12 08:17:00
Index: test_vc.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_vc.py,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- test_vc.py 12 Jun 2006 08:36:17 -0000 1.57
+++ test_vc.py 12 Jun 2006 08:36:22 -0000 1.58
@@ -363,17 +363,24 @@
# specify.
if type(command) not in (list, tuple):
command = command.split(" ")
- #print "do %s" % command
+ DEBUG = False
+ if DEBUG:
+ print "do %s" % command
+ print " in basedir %s" % basedir
+ if stdin:
+ print " STDIN:\n", stdin, "\n--STDIN DONE"
env = os.environ.copy()
env['LC_ALL'] = "C"
d = myGetProcessOutputAndValue(command[0], command[1:],
env=env, path=basedir,
stdin=stdin)
def check((out, err, code)):
- #print
- #print "command: %s" % command
- #print "out: %s" % out
- #print "code: %s" % code
+ if DEBUG:
+ print
+ print "command was: %s" % command
+ if out: print "out: %s" % out
+ if err: print "err: %s" % err
+ print "code: %s" % code
if code != 0 and not failureIsOk:
log.msg("command %s finished with exit code %d" %
(command, code))
More information about the Commits
mailing list