[Buildbot-devel] how to pass /CFG="Release|Win32" command line parameter to a win32 slave ?

fabrice fabrice fcrestois at users.sourceforge.net
Thu Jan 4 01:43:55 UTC 2007


 Hello, the way that is use is to bypass the quote arguments from twisted.
 
The quoted argument does not work correctly for "release|win32" in case of using the shell
 
I can use this patched because 
            I use only shell command and twisted for buildbot (2.4.0, 0.7.4)
            I take care of escaped correctly the argument ( in fact uses short name to avoid it)
                        varvs = 'C:/Program Files/Microsoft Visual Studio 8/Common7/Tools/vsvars32.bat'
                              if plateform:
                                target = '"%s|%s"'%(configuration,plateform)
                              else:
                                target = configuration
                              self.command  =  '%s & devenv %s /Build %s'%(win32api.GetShortPathName(varvs),solution,target)
 
In Twisted/internet/_dumbwin32proc.py
Change
        #cmdline = quoteArguments(args)
        cmdline = " ".join(args)
 
Nota:
The documentation is not good in case of windows, where they are no way to bypass the quoteArgument
http://twistedmatrix.com/trac/ticket/1123
 
6.1.3 ShellCommand
The preferred way to specify the command is with a list of argv strings, since this allows for spaces in filenames and avoids doing any fragile shell-escaping. You can also specify the command with a single string, in which case the string is given to '/bin/sh -c COMMAND' for parsing. 
 
Fabrice
_________________________________________________________________
Be one of the first to try Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20070104/1729990b/attachment.html>


More information about the devel mailing list