[Buildbot-devel] Running Shell Commands

Brandon Philips brandon at ifup.org
Wed May 11 07:27:56 UTC 2005


On a related note I ran the command as 

/bin/sh -c "(make allmodconfig > .config)"

in the workdir and all went well.  I am not entirely sure what is going
on where to debug it the way in which a ShellCommand gets executed is
hard to follow.

-Brandon

On 22:36 Tue 10 May     , Brandon Philips wrote:
> Hi-
> 
> I changed the command to look like:
> 
> config = s(step.ShellCommand, command="make allmodconfig > .config",
> description="making .config", descriptionDone="made .config")
> 
> But the .config file does not get the expected text into the file and
> the following error is created:
> 
> nd 'make allmodconfig > .config' in dir
> /home/philips/buildbot-slave/linus-gw/build (timeout 1200 secs)
> .config:2: *** missing separator.  Stop.
> make[1]: *** [allmodconfig] Error 2
> program finished with exit code 2
> 
> 
> make[1]: Entering directory
> `/home/philips/buildbot-slave/linus-gw/build'
>   HOSTCC  scripts/basic/fixdep
>   HOSTCC  scripts/basic/split-include
>   HOSTCC  scripts/basic/docproc
> make[1]: Leaving directory `/home/philips/buildbot-slave/linus-gw/build'
> 
> Odd, I don't know what to make of it.
> 
> Any ideas?
> 
> -Brandon
> 
> 
> On 18:08 Mon 09 May     , Brandon Philips wrote:
> > I need to run `make allmodconfig > .config` using ShellCommand but I keep
> > getting the following errors:
> > 
> > command '['(make allmodconfig > .config)']' in dir
> > /home/philips/projects/bigit/slave/full/build (timeout 1200 secs)
> > Upon execvpe (make allmodconfig > .config) ['(make allmodconfig >
> > .config)'] in environment id -1216986820:
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.3/site-packages/twisted/internet/process.py",
> > line 674, in __init__
> >     os.execvpe(command, args, environment)
> >   File "/usr/lib/python2.3/os.py", line 345, in execvpe
> >     _execvpe(file, args, env)
> >   File "/usr/lib/python2.3/os.py", line 374, in _execvpe
> >     func(fullname, *argrest)
> > OSError: [Errno 2] No such file or directory
> > program finished with exit code 1
> > 
> > Any ideas?
> > 
> > 
> > Thanks,
> > 
> > Brandon
> 
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://buildbot.net/pipermail/devel/attachments/20050511/5ea1d0d8/attachment.bin>


More information about the devel mailing list