[Buildbot-devel] Trouble with addSuppression()

Vadim Zeitlin vz-buildbot at zeitlins.org
Thu Apr 16 23:35:31 UTC 2015


On Wed, 15 Apr 2015 20:41:17 +0300 Mikhail Sobolev <mss at mawhrin.net> wrote:

MS> On Wed, Apr 15, 2015 at 05:25:13PM +0200, Vadim Zeitlin wrote:
MS> >     step.addSuppression([
MS> You actually need to create a new class based on what operation you'd like to
MS> perform (Compile in this particular case) and override the method:
MS> 
MS> class MyCompile(Compile):
MS>     def addSuppression(self, supp_list):
MS>         ...

 Hello again,

 I've finally managed to understand what you meant (sorry for not getting
it the first time), thanks for the hint! I didn't even have to override
addSuppression(), the default implementation is indeed fine, but the custom
class creation step is indeed crucial and as soon as I replaced my

	step = Compile(..., warningPattern=r"...")
	step.addSuppression(...)

code with

	class MyCompile(Compile):
		def __init__(self, **kwargs):
			Compile.__init__(warningPattern=r"...", **kwargs)
			self.addSuppression(...)
	step = MyCompile(...)

everything started working.

 Thanks again!
VZ
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://buildbot.net/pipermail/devel/attachments/20150417/50d1cd04/attachment.bin>


More information about the devel mailing list