[Buildbot-devel] How to use addURL() for buildbot.steps.shell.ShellCommand

Rick Liu rick.liu at mobidia.com
Wed Feb 3 00:49:02 UTC 2010


Hi,

I'm trying to run the following command in master.cfg of buildbot:
========================================================================================================
runEngineModuleTestStep = ShellCommand(description="Running Engine Module tests", descriptionDone="Ran Engine Module tests", command=["test_master.py"], workdir="MIC\\Engine\\Test\\ModuleTest")

runEngineModuleTestStep.addURL("google", "http://google.ca")
========================================================================================================

I have checked that "buildbot.steps.shell.ShellCommand" is inherited from "buildbot.process.buildstep.BuildStep", which has addURL function:
isinstance(runEngineModuleTestStep, buildbot.steps.shell.ShellCommand)= True
isinstance(runEngineModuleTestStep, buildbot.process.buildstep.BuildStep)= True

I have also checked all the functions "Shellcommand" has:
dir(runEngineModuleTestStep)=
['__doc__', '__init__', '__module__', '_connectPendingLogObservers', '_pendingLogObservers', '_startStep_2', 'acquireLocks', 'addCompleteLog', 'addFactoryArguments', 'addHTMLLog', 'addLog', 'addLogFile', 'addLogObserver', 'addURL', 'alwaysRun', ...]

However, when I do:
runEngineModuleTestStep.addURL("google", "http://google.ca")
I always get:
Traceback (most recent call last):
  File "C:\Python26\Lib\site-packages\buildbot\scripts\runner.py", line 988, in doCheckConfig
    ConfigLoader(basedir=configFileName)
  File "C:\Python26\Lib\site-packages\buildbot\scripts\checkconfig.py", line 32, in __init__
    self.loadConfig(configFile)
  File "C:\Python26\Lib\site-packages\buildbot\master.py", line 506, in loadConfig
    exec f in localDict
  File "c:\ONB_T\master.cfg", line 131, in <module>
    runEngineModuleTestStep.addURL("google", "http://google.ca")
  File "C:\Python26\Lib\site-packages\buildbot\process\buildstep.py", line 956, in addURL
    self.step_status.addURL(name, url)
AttributeError: 'NoneType' object has no attribute 'addURL'


Anyone knows how to do fix this?


Thanks,

Rick



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20100202/52e7c417/attachment.html>


More information about the devel mailing list