Commit b80f1377 by Jamie Madill Committed by Angle LUCI CQ

Trace Tests: Print serialization diff on failure.

Instead of only printing this with the "verbose" flag, print the diff of the serialization as an "info" message. This will make the diff show up on the bots. Bug: angleproject:5715 Change-Id: Ic9684b43cdf2d6ae248b5beab4317b0e939567c1 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2979854 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com>
parent 4194d400
...@@ -614,10 +614,9 @@ class TestBatch(): ...@@ -614,10 +614,9 @@ class TestBatch():
passes.append(self.FindTestByLabel(words[1])) passes.append(self.FindTestByLabel(words[1]))
else: else:
fails.append(self.FindTestByLabel(words[1])) fails.append(self.FindTestByLabel(words[1]))
if self.verbose: logging.info("Context comparison failed: {}".format(
print("Context comparison failed: {}".format( self.FindTestByLabel(words[1])))
self.FindTestByLabel(words[1]))) self.PrintContextDiff(replay_build_dir, words[1])
self.PrintContextDiff(replay_build_dir, words[1])
count += 1 count += 1
if len(passes) > 0: if len(passes) > 0:
......
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