[Buildbot-commits] buildbot/buildbot/slave commands.py,1.82,1.83

Brian Warner warner at users.sourceforge.net
Wed Jul 4 05:52:06 UTC 2007


Update of /cvsroot/buildbot/buildbot/buildbot/slave
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15887/buildbot/slave

Modified Files:
	commands.py 
Log Message:
[project @ ShellCommand: log the environment with one variable per line, instead of a single very long line]

Original author: warner at lothar.com
Date: 2007-07-04 05:43:04+00:00

Index: commands.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/slave/commands.py,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- commands.py	4 Jul 2007 05:09:47 -0000	1.82
+++ commands.py	4 Jul 2007 05:52:04 -0000	1.83
@@ -362,9 +362,13 @@
         self.sendStatus({'header': msg+"\n"})
 
         # then the environment, since it sometimes causes problems
-        msg = " environment: %s" % (self.environ,)
-        log.msg(" " + msg)
-        self.sendStatus({'header': msg+"\n"})
+        msg = " environment:\n"
+        env_names = self.environ.keys()
+        env_names.sort()
+        for name in env_names:
+            msg += "  %s=%s\n" % (name, self.environ[name])
+        log.msg(" environment: %s" % (self.environ,))
+        self.sendStatus({'header': msg})
 
         # this will be buffered until connectionMade is called
         if self.initialStdin:





More information about the Commits mailing list