Ticket #179: 179.patch

File 179.patch, 617 bytes (added by dustin, 4 years ago)

179.patch

  • buildbot/slave/commands.py

    diff --git a/buildbot/slave/commands.py b/buildbot/slave/commands.py
    index f84f703..b848c4f 100644
    a b class ShellCommand: 
    342342            else: 
    343343                argv = self.command 
    344344 
     345        # $PWD usually indicates the current directory; spawnProcess may not 
     346        # update this value, though, so we set it explicitly here. 
     347        self.environ['PWD'] = os.path.abspath(self.workdir) 
     348 
    345349        # self.stdin is handled in ShellCommandPP.connectionMade 
    346350 
    347351        # first header line is the command in plain text, argv joined with