-
Notifications
You must be signed in to change notification settings - Fork 6k
Log the results when ShellTest.Screenshot fails #20932
Conversation
shell/common/shell_unittests.cc
Outdated
| sk_sp<SkData> screenshot_data = screenshot_future.get().data; | ||
| if (!reference_data->equals(screenshot_data.get())) { | ||
| LogSkData(reference_data, "reference"); | ||
| LogSkData(reference_data, "screenshot"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| LogSkData(reference_data, "screenshot"); | |
| LogSkData(screenshot_data, "screenshot"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
shell/common/shell_unittests.cc
Outdated
| LogSkData(reference_data, "reference"); | ||
| LogSkData(reference_data, "screenshot"); | ||
| } | ||
| ASSERT_TRUE(reference_data->equals(screenshot_data.get())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can we just do something like ASSERT_TRUE(false) in the if block above to avoid doing the comparison twice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should then drop this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
360be7b to
1c08a20
Compare
1c08a20 to
821aed3
Compare
This test has been flaky on LUCI recently. See flutter/flutter#65026
821aed3 to
465942c
Compare
dnfield
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This test has been flaky on LUCI recently.
See flutter/flutter#65026