[Buildbot-devel] Shell command that cannot describe itself

Dustin J. Mitchell dustin at v.igoro.us
Fri Dec 3 20:01:11 UTC 2010


On Fri, Dec 3, 2010 at 1:47 PM, Dustin J. Mitchell <dustin at v.igoro.us> wrote:
> Almad, can you file a bug so we can try to track this down?

I filed bug 1704 for this purpose.

I can replicate with code similar to Rishi's:

class InstallBuildFromArchivePath(ShellCommand):
       def start(self):
               archivepath = 'foo'
               self.setCommand(["./scripts/untar.pl", "%s/latest.path"
% archivepath])
               ShellCommand.start(self)

because self.describe is getting called before self.setCommand, so the
command is still None.  This is a bug - describe should work anyway -
but it doesn't address your error.

Your one-liner above:
  ShellCommand(command=['sudo', 'aptitude', 'update'], **{})
is a very simple case, and works fine for me.  The command should be
set right away, and carried forward by the addFactoryArguments call.

Was this a simplified version of a more complex configuration?
Perhaps a subclass, or there were really keys in the {}?

Dustin




More information about the devel mailing list