[cig-commits] r20120 - cs/buildbot/trunk/buildbot/slave

brad at geodynamics.org brad at geodynamics.org
Tue May 15 09:03:05 PDT 2012


Author: brad
Date: 2012-05-15 09:03:04 -0700 (Tue, 15 May 2012)
New Revision: 20120

Modified:
   cs/buildbot/trunk/buildbot/slave/commands.py
Log:
Added patch for setting PWD in ShellCommand.

Modified: cs/buildbot/trunk/buildbot/slave/commands.py
===================================================================
--- cs/buildbot/trunk/buildbot/slave/commands.py	2012-05-15 04:50:33 UTC (rev 20119)
+++ cs/buildbot/trunk/buildbot/slave/commands.py	2012-05-15 16:03:04 UTC (rev 20120)
@@ -337,6 +337,15 @@
             else:
                 argv = command
 
+        # http://trac.buildbot.net/attachment/ticket/179/179.patch
+        #
+        # See also http://trac.buildbot.net/attachment/ticket/456/msys.patch
+        # (this patch was not applied)
+        #
+        # $PWD usually indicates the current directory; spawnProcess may not 
+        # update this value, though, so we set it explicitly here. 
+        self.environ['PWD'] = os.path.abspath(self.workdir)
+
         # self.stdin is handled in ShellCommandPP.connectionMade
 
         # first header line is the command in plain text, argv joined with



More information about the CIG-COMMITS mailing list