[Buildbot-devel] ShellCommand

Jean-Michel Beuken jean-michel.beuken at uclouvain.be
Tue Feb 3 22:11:45 UTC 2009


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






More information about the devel mailing list