[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}
This commit is contained in:
parent
5df3b4ab5c
commit
5effc7131a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user