[Buildbot-devel] Alternate shell on win32

Rafael Sanz rafael.sanz at ya.com
Fri Apr 6 10:31:12 UTC 2007


Hi Gianlica, Tim at all.

I have all environment run under windows & Linux and its working fine almost
cases (with some ones tricks :( ).

When you execute a step.ShellCommand, command = [ YOUR_COMMAND] its executed
a line cmd /C YOUR_COMMAND and expect an executable or some than you can
launch in that manner.

Windows recognize like executables files following the environment variable
PATHEXT, (in my case):

	PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.py;.pyw

Then my first suggestion is that YOUR_COMMAND will be a .BAT file, this
ensures you are running into a CMD shell.

In my case I use:
	f.addStep(shell.Configure, workdir=f.workdir,
                    command="configure.py",
                    logfiles={'test_log': '/out.log'})

And my "executable" it's a configure.py (not omit the extension py) that run
under all operating systems.

Take care with spaces or non ASCII characters in the path, like Tim advice.

And last if you need, could change the COMSPECT environment to change the
SHELL to launch for a 4NT or a cigwin shell.

I hope it will help you.

Best regards.



-----Mensaje original-----
De: buildbot-devel-bounces at lists.sourceforge.net
[mailto:buildbot-devel-bounces at lists.sourceforge.net] En nombre de Gianluca
Sforna
Enviado el: viernes, 06 de abril de 2007 8:51
Para: buildbot-devel at lists.sourceforge.net
Asunto: Re: [Buildbot-devel] Alternate shell on win32

On 4/6/07, Tim Flink <tim at mail.mew.co.jp> wrote:
> This is a little late, so I don't know if you found a solution but I
> thought I would post this anyways.

No, I'm still struggling to understand why it did not work. It is even
more disappointing becasue some months ago I evaluated buildbot to see
if it fitted our needs, and at the time I was able to run a full build
in a win32 slave :(

>
> I was able to get "echo hello" on my winxp buildslave working using
> either of these statements in my master.cfg:
>
> f.addStep( step.ShellCommand, command = [ 'echo', 'hello' ] )
> f.addStep( step.ShellCommand, command =  'echo hello'  )
>
> What version of buildbot and its dependencies are you using?
>
> My buildslave is using:
> WindowsXP SP2 (32-bit)
> buildbot 0.7.5
> Python 2.5 (python.org binary installer)
> Twisted 2.5.0 (binary installer for Python 2.5 from twistedmatrix.com)
> pywin32-2.1.0 (binary installer for Python 2.5 from sourceforge)

The only difference here seems to be python (I'm using 2.4.4). Just a
question: where is the buildslave directory in your filesystem?

>
> My buildmaster is using:
> Fedora Core 6 (x86)

Same here :)

> python-twisted 1.3.0 (from fedora yum repository)

strange. The current version (which I'm using) is 2.4.0, though I do
not believe the buildmaster could be my problem

> buildbot 0.7.5

Is this not from the fedora extras repo? Any particular reason for this?

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Buildbot-devel mailing list
Buildbot-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/buildbot-devel





More information about the devel mailing list