[Buildbot-devel] How do you subclass a Buildstep?

Giovanni Gherdovich g.gherdovich at gmail.com
Sun May 31 12:41:41 UTC 2015


On Sun, May 31, 2015 at 1:55 PM, Bob Hood <bhood2 at comcast.net> wrote:
>
> On 5/31/2015 3:41 AM, Giovanni Gherdovich wrote:
>
> -- -- >8 -- -- >8 -- -- >8 -- -- >8 -- -- >8 -- -- >8 -- -- >8
> class Frob(ShellCommand):
>     def __init__(self, foo, *args, **kwargs):
>         super(ShellCommand, self).__init__(*args, **kwargs)
>
>
> Just a guess, but shouldn't that line be:
>
>         super(Frob, self).__init__(*args, **kwargs)
>
> I would imagine the superclass of Frob is expecting the "command" kwarg,
but the superclass of Shellcommand is probably not.
>

*facepalm*

Thanks Bob, that's the problem.

Cheers,
Giovanni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20150531/9fc7d5cd/attachment.html>


More information about the devel mailing list