mozilla/mozcommitbuilder — pull request #10 by ttaubert (2012-06-15 10:16:42+00:00)
Title: [FirefoxRunner] TypeError: __init__() takes at least 2 arguments (2 given)

Using mozcommitbuilder (via mozregression) to bisect fails with the following error:

File "/usr/local/lib/python2.7/dist-packages/mozcommitbuilder-0.4.9-py2.7.egg/mozcommitbuilder/builder.py", line 275, in bisect
self.bisectRecurse(testcondition=testcondition, args_for_condition=args_for_condition)
File "/usr/local/lib/python2.7/dist-packages/mozcommitbuilder-0.4.9-py2.7.egg/mozcommitbuilder/builder.py", line 393, in bisectRecurse
self.run()
File "/usr/local/lib/python2.7/dist-packages/mozcommitbuilder-0.4.9-py2.7.egg/mozcommitbuilder/builder.py", line 465, in run
runner = FirefoxRunner(binary=os.path.join(self.shellCacheDir,"mozbuild-trunk","obj-ff-dbg","dist","bin") + "/firefox")
TypeError: __init__() takes at least 2 arguments (2 given)

FirefoxRunner (and all other runners from mozrunner) expect the first argument to be a profile. We don't need to specify any if we use Runner.create(). Not 100% sure that's the right fix but this makes me able to bisect again.