[Buildbot-devel] Command Error
Chris AtLee
chris at atlee.ca
Thu Jun 10 11:09:17 UTC 2010
You need to specify that the command needs to run inside a shell, e.g.
command = ['bash', '-c', 'if [ -d _trial_temp ]; then sudo chown -R
buildmaster:buildmaster _trial_temp; fi']
On Thu, Jun 10, 2010 at 3:40 AM, Ravindra Parihar <imravin at gmail.com> wrote:
> Hi All,
>
> I am running below command in master.cfg.
> command=[' if [ -d _trial_temp ]; then' ,'sudo', 'chown',
> '-R','buildmaster:buildmaster','_trial_temp;', 'fi'])
>
> But when the buildbot 0.7.11p3 execute the command it get failed with error
> -
> ======================
> Upon execvpe if [ -d _trial_temp ]; then [' if [ -d _trial_temp ]; then',
> 'sudo', 'chown', '-R', 'buildmaster:buildmaster', '_trial_temp;', 'fi'] in
> environment id 85827488
> :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
> program finished with exit code 1
> ========================
>
> Please suggest what could be the error and how to resolve this error.
>
> Thanks,
> Ravi
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> 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