[Buildbot-commits] [Buildbot] #1795: add python script slave-side command

Buildbot nobody at buildbot.net
Sat Jan 26 06:14:27 UTC 2013


#1795: add python script slave-side command
------------------------+--------------------
Reporter:  dustin       |       Owner:
    Type:  enhancement  |      Status:  new
Priority:  major        |   Milestone:  0.8.8
 Version:  0.8.3p1      |  Resolution:
Keywords:  sprint       |
------------------------+--------------------

Comment (by tom.prince):

 Hmm. This could be implemented simply by exposing `sys.executable` to the
 master, and then using `ShellCommand` to run it. With `StringDownload` to
 get the code there.

 Or, we could pass the code to be executed with `-c`. One possible issue
 with this, is how newlines are handled. Some code on the twisted buildbot
 uses

 {{{
 #!python
 from binascii import unhexlify; exec(unhexlify(b"%s"))
 }}}

 to avoid dealing with newlines et al in the code to run.

-- 
Ticket URL: <http://trac.buildbot.net/ticket/1795#comment:3>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list