[Buildbot-devel] shellcommand cd problem

Don Fike fike at eecs.utk.edu
Thu May 15 23:33:52 UTC 2008

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):
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?


More information about the devel mailing list