[Buildbot-devel] buildbot shell escaping annoyance on windows: solution?

Philippe McLean philippe.mclean at gmail.com
Thu Jul 28 19:35:12 UTC 2011


hi,
I'm having trouble passing a quoted string to the devenv.com command on
windows via the vstudio module.

from the command line, this works:

C:\Source>devenv.com IN\_VS_SolutionFiles\DFCLIDriver\DFCLIDriver.sln
/Rebuild "Release|Any CPU"

When run from buildbot, the | always seems to be interpreted as a pipe
command despite attempts to escape the complete option.

Combinations I've tried. I list the python string, the start of stdio
output, and the result.

Any suggestions?


"\"%s|Any CPU\"" % config

'devenv.com' 'INgrooves\\INDMA.sln' '/Build' '"Release|Any CPU"'
...
'Any' is not recognized as an internal or external command,
operable program or batch file.



"\\\"%s|Any CPU\\\"" % config

'devenv.com' 'IN\\INDMA.sln' '/Build' '\\"Debug|Any CPU\\"'
...
'Any' is not recognized as an internal or external command,
operable program or batch file.


 "'%s|Any CPU'" % config

'devenv.com' 'IN\\INDMA.sln' '/Build' "'Release|Any CPU'"

Invalid solution configuration




"%s\|Any\ CPU" % config

'devenv.com' 'INgrooves\\INDMA.sln' '/Build' 'Release\\|Any\\ CPU'

Invalid solution configuration
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20110728/02e99061/attachment.html>


More information about the devel mailing list