[Buildbot-devel] shellcommand cd problem

Neil Hemingway neil.hemingway at googlemail.com
Fri May 16 06:03:09 UTC 2008


I suspect that it's failing to find a 'cd' command.  For it to work at all,
cd has to be a builtin of the shell and so is not directly executable.  What
I tend to do with bb is use utility scripts that assume they're working in
the root of the checkout.  I.e. the script reads:

  #!/bin/bash
  cd src
  do something
  do something else

or you could use a utility Makefile that simply cd's to src and reinvokes
make in that directory

Does that help?

Regards,
Neil

2008/5/16 Don Fike <fike at eecs.utk.edu>:

>
> I'm trying to do a simple cd in a ShellCommand like;
>
> f.addStep(ShellCommand, command=["cd","src"], description=["cd"])
>
> I checkout fine but need to cd to the src directory to run configure and
> make. I can do a shellcommand pwd and ls and see the directory src
> within the build directory but any form of cd fails with an error
> similar to this;
>
> ---
>
> cd src
>  in dir /buildbot/slaves/bb1/build (timeout 1200 secs)
>  watching logfiles {}
>  argv: ['cd', 'src']
> Upon execvpe cd ['cd', 'src'] in environment id 1082807404:
> Traceback (most recent call last):
>   File
>
> "/pkgs/Python-2.4.1/lib/python2.4/site-packages/twisted/internet/process.py",
> line 777, in __init__
>     os.execvpe(command, args, environment)
>   File "/pkgs/Python-2.4.1/lib/python2.4/os.py", line 350, in execvpe
>     _execvpe(file, args, env)
>   File "/pkgs/Python-2.4.1/lib/python2.4/os.py", line 379, in _execvpe
>     func(fullname, *argrest)
> OSError: [Errno 2] No such file or directory
> program finished with exit code 1
>
> ---
>
> Using BB 0.7.5 with two different Linux slaves with the same results.
> Is Python reporting no such cd?
> Any suggestions on correcting this issue?
>
>
> Thanks,
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20080516/1a37234b/attachment.html>


More information about the devel mailing list