[Buildbot-devel] Alternate shell on win32

A.T.Hofkamp a.t.hofkamp at tue.nl
Thu Mar 29 13:11:14 UTC 2007


Gianluca Sforna wrote:
> On 3/28/07, Christopher Kermorvant <kermorvant at gmail.com> wrote:
> 
>>Hi,
>>
>>I had this kind of problem.
>>
>>It seems to me that you must define the command line with each
>>argument as an element in a python list :
>>f.addStep(ShellCommand, command=["command.exe","arg1","arg2"])
>>
>>You can check that on your cfg file.
> 
> 
> Done. To be sure I used command=["echo", "hello"] but it failed still.
> 
> This time I captured the traceback from the slave:
> 
> 2007/03/28 15:54 +0200 [Broker,client] error in ShellCommand._startCommand
> 2007/03/28 15:54 +0200 [Broker,client] Unhandled Error
>         Traceback (most recent call last):
>           File "c:\Python24\lib\site-packages\buildbot\slave\bot.py", line 169,
> in remote_startCommand
>             d = self.command.doStart()
>           File "c:\Python24\lib\site-packages\buildbot\slave\commands.py", line
> 616, in doStart
>             d = defer.maybeDeferred(self.start)
>           File "C:\Python24\lib\site-packages\twisted\internet\defer.py", line 1
> 07, in maybeDeferred
>             result = f(*args, **kw)
>           File "c:\Python24\lib\site-packages\buildbot\slave\commands.py", line
> 965, in start
>             d = self.command.start()
>         --- <exception caught here> ---
>           File "c:\Python24\lib\site-packages\buildbot\slave\commands.py", line
> 294, in start
>             self._startCommand()
>           File "c:\Python24\lib\site-packages\buildbot\slave\commands.py", line
> 376, in _startCommand
>             usePTY=self.usePTY)
>           File "C:\Python24\lib\site-packages\twisted\internet\posixbase.py", li
> ne 374, in spawnProcess
>             return Process(self, processProtocol, executable, args, env, path)
>           File "C:\Python24\lib\site-packages\twisted\internet\_dumbwin32proc.py
> ", line 183, in __init__
>             raise OSError(pwte)
>         exceptions.OSError: (267, 'CreateProcess', 'The directory name is invali
> d.')

hmm, are you sure the directory specified for the slave actually exists?
At my Linux system I remember that I had to create the final sub-directory of 
the slave process by hand.

(maybe try with the normal shell first for 'hello world' ?)

Albert




More information about the devel mailing list