Commit 5effc713 authored by machenbach's avatar machenbach Committed by Commit bot

[test] Fix assert for predictable mode in test runner.

NOTRY=true

Review URL: https://codereview.chromium.org/1156663009

Cr-Commit-Position: refs/heads/master@{#28679}
parent 5df3b4ab
......@@ -255,8 +255,13 @@ class Runner(object):
if queued_exception:
raise queued_exception
# Make sure that any allocations were printed in predictable mode.
assert not self.context.predictable or self.printed_allocations
# Make sure that any allocations were printed in predictable mode (if we
# ran any tests).
assert (
not self.total or
not self.context.predictable or
self.printed_allocations
)
def _VerbosePrint(self, text):
if self.context.verbose:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment