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

This commit is contained in:
Ted Mielczarek
2010-06-10 08:27:47 -04:00
parent c4bf7ed967
commit c42bfc7ae2

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,