forked from mirrors/gecko-dev
Bug 1679442 - Fix handling of missing assertion count, r=whimboo
This doesn't work in Py3 because we can't compare an int with None. If the count is None we don't want to log anything, so just check for that. Differential Revision: https://phabricator.services.mozilla.com/D98018
This commit is contained in:
parent
eaa6d5669b
commit
290d475767
2 changed files with 4 additions and 3 deletions
|
|
@ -956,7 +956,8 @@ class MarionetteRefTestExecutor(RefTestExecutor):
|
|||
assertion_count = self.protocol.asserts.get()
|
||||
if "extra" not in result:
|
||||
result["extra"] = {}
|
||||
result["extra"]["assertion_count"] = assertion_count
|
||||
if assertion_count is not None:
|
||||
result["extra"]["assertion_count"] = assertion_count
|
||||
|
||||
return self.convert_result(test, result)
|
||||
|
||||
|
|
|
|||
|
|
@ -664,8 +664,8 @@ class TestRunnerManager(threading.Thread):
|
|||
self.logger.debug("Unexpected count in this thread %i" % self.unexpected_count)
|
||||
|
||||
if "assertion_count" in file_result.extra:
|
||||
assertion_count = file_result.extra.pop("assertion_count")
|
||||
if assertion_count > 0:
|
||||
assertion_count = file_result.extra["assertion_count"]
|
||||
if assertion_count is not None and assertion_count > 0:
|
||||
self.logger.assertion_count(test.id,
|
||||
int(assertion_count),
|
||||
test.min_assertion_count,
|
||||
|
|
|
|||
Loading…
Reference in a new issue