bug 569965 - automationutils.processLeakLog() should learn not to TEST-UNEXPECTED-FAIL every single object line when there are lots. r=philor

--HG--
extra : rebase_source : 4ce122222020d522f742b7e77bfacafe8f7f90bc
This commit is contained in:
Ted Mielczarek 2010-06-10 08:27:47 -04:00
parent 9422e7d0e6
commit 8ebae2dc0a

View File

@ -263,6 +263,7 @@ def processSingleLeakFile(leakLogFileName, PID, processType, leakThreshold):
seenTotal = False
crashedOnPurpose = False
prefix = "TEST-PASS"
numObjects = 0
for line in leaks:
if line.find("purposefully crash") > -1:
crashedOnPurpose = True
@ -304,6 +305,10 @@ def processSingleLeakFile(leakLogFileName, PID, processType, leakThreshold):
else:
instance = "instance"
rest = ""
numObjects += 1
if numObjects > 5:
# don't spam brief tinderbox logs with tons of leak output
prefix = "TEST-INFO"
log.info("%(prefix)s %(process)s| automationutils.processLeakLog() | leaked %(numLeaked)d %(instance)s of %(name)s "
"with size %(size)s bytes%(rest)s" %
{ "prefix": prefix,