[Buildbot-devel] command in double quotes and not single quotes

Raja.Pavan.Kumar.G rajapavankumar at yahoo.com
Fri Aug 22 05:28:31 UTC 2008


This problem is fixed, I changed the syntax of shell command

It has to be enclosed in double quotes and not in single quotes

Failed f1.addStep(shell.ShellCommand, description= "chdir", command=
['cd','./tempGitBranch'])

Succeeded

f1.addStep(shell.ShellCommand, description= "chdir", command=
["cd ./tempGitBranch"])



Raja G Pavan Kumar

Bangalore

India

--- On Fri, 8/22/08, Tim Allen <screwtape at froup.com> wrote:
From: Tim Allen <screwtape at froup.com>
Subject: Re: [Twisted-Python] dont get ssl Server working
To: "Twisted general discussion" <twisted-python at twistedmatrix.com>
Cc: rajapavankumar at yahoo.com
Date: Friday, August 22, 2008, 6:27 AM

On Thu, Aug 21, 2008 at 04:35:55PM +0530, raja pavankumar wrote:
> AS part of my buildbot setup, I am executing a shell command in the slave
> environment. (This has been coded as part of the master.cfg file)
> 
> This command is failing
> f1.addStep(shell.ShellCommand, description= "chdir", command=
['cd',
> './tempGitBranch'])

"cd" isn't a command that can be run - there's no /bin/cd or
/usr/bin/cd
binary that you could call. It's a shell built-in, which means it's
available for shell-scripts to use, and it's available when you're
using
the shell interactively, but that's it.

You're probably looking for os.chdir("./tempGitBranch")



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20080821/8240ed09/attachment.html>


More information about the devel mailing list