[Buildbot-devel] More Python Trouble
David A. Greene
greened at obbligato.org
Mon Dec 1 18:14:05 UTC 2008
Ok, I'm puzzled. I have my tester described like this:
class DejaGNUTester(Test):
command=["make", "check"]
total = 0
description = "testing"
descriptionDone = "test"
def __init__(self, type, *args, **kwargs):
description = "testing " + type
descriptionDone = "test " + type
Test.__init__(self, *args, **kwargs)
def describe(self, done=False):
result = Test.describe(self, done)
return result
def evaluateCommand(self, cmd):
[...]
I try to use it:
f.addStep(DejaGNUTester("initial-llvm"))
It blows up:
2008-11-26 10:53:17-0600 [Broker,0,172.30.12.179] error while creating step,
factory=__builtin__.DejaGNUTester, args={'descriptionDone': None, 'workdir':
None, 'command': None, 'description': None, 'logfiles': {}}
2008-11-26 10:53:17-0600 [Broker,0,172.30.12.179] Build.setupBuild failed
2008-11-26 10:53:17-0600 [Broker,0,172.30.12.179] Unhandled Error
Traceback (most recent call last):
File
"/cray/iss/compiler/cost/tools/x86_64-unknown-linux-gnu/lib/pytho
n/twisted/internet/defer.py", line 243, in callback
self._startRunCallbacks(result)
File
"/cray/iss/compiler/cost/tools/x86_64-unknown-linux-gnu/lib/pytho
n/twisted/internet/defer.py", line 312, in _startRunCallbacks
self._runCallbacks()
File
"/cray/iss/compiler/cost/tools/x86_64-unknown-linux-gnu/lib/pytho
n/twisted/internet/defer.py", line 328, in _runCallbacks
self.result = callback(self.result, *args, **kw)
File
"/cray/iss/compiler/cost/tools/x86_64-unknown-linux-gnu/lib/pytho
n/buildbot/process/builder.py", line 637, in _startBuild_2
d = build.startBuild(bs, self.expectations, sb)
--- <exception caught here> ---
File
"/cray/iss/compiler/cost/tools/x86_64-unknown-linux-gnu/lib/pytho
n/buildbot/process/base.py", line 336, in startBuild
self.setupBuild(expectations) # create .steps
File
"/cray/iss/compiler/cost/tools/x86_64-unknown-linux-gnu/lib/python/buildbot/process/base.py",
line 387, in setupBuild
step = factory(**args)
exceptions.TypeError: __init__() takes at least 2 non-keyword
arguments (1 given)
Eh?
-Dave
More information about the devel
mailing list