[Buildbot-devel] ShellCommand

Mark Roddy markroddy at gmail.com
Tue Feb 3 22:29:58 UTC 2009


I noticed you didn't supply a working directory to the shell command
step.  Can you either confirm that the 'tests' exists in the root
directory of the build or try explicitly specifying the directory that
'tests' is in?  Also note that the following gotcha that you may be
falling into, the following is invalid:
shell.ShellCommand(command=["cd","proj1"])
shell.ShellCommand(command=["cd","tests"])
shell.ShellCommand(command=["make","test"])

If 'tests' is a sub directory of 'proj1'.  The current working
directory is not preserved across steps.  Instead use:
shell.ShellCommand(command=["make","test"], workdir="proj1/tests")

-Mark



On Tue, Feb 3, 2009 at 5:11 PM, Jean-Michel Beuken
<jean-michel.beuken at uclouvain.be> wrote:
> Hello,
>
> I don't understand why a lot of simple ShellCommand doesn't work in
> addStep () like
>
>
> shell.ShellCommand(command=["cd","tests"])  (the dir exists in the build
> folder)
>
> the error is :
>
> Upon execvpe cd ['cd', 'tests'] in environment id 62318864
> :Traceback (most recent call last):
>  File "/usr/lib64/python2.4/site-packages/twisted/internet/process.py",
> line 396, in _fork
>    executable, args, environment)
>  File "/usr/lib64/python2.4/site-packages/twisted/internet/process.py",
> line 442, in _execChild
>    os.execvpe(executable, args, environment)
>  File "/usr/lib64/python2.4/os.py", line 350, in execvpe
>    _execvpe(file, args, env)
>  File "/usr/lib64/python2.4/os.py", line 379, in _execvpe
>    func(fullname, *argrest)
> OSError: [Errno 2] No such file or directory
>
> but these work  for exemples :
>
> shell.ShellCommand(command=["id"])
> shell.ShellCommand(command=["/bin/rm","-rf","../build"], haltOnFailure = 1)
> shell.ShellCommand(command=["./config/scripts/makemake"],timeout=12000,
> haltOnFailure = 1)
> shell.ShellCommand(command=["/bin/cp","doc/config/build-examples/amd-gfortran4.3_chum.ac","chum.ac"],
> haltOnFailure = 1)
>
>
> thanks
>
> regards
>
> jmb
>
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> 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