Collect more debug information for failures

This CL adds in some code to dump the raw touch events to
disk as the firmware test suite runs.  This is useful in the
situation where the test hangs or crashes due to unexpected
input.  Previously there was no way to analyize what input
broke the test suite other than (hopefully) a stack trace.
With this CL now there is a log saved to disk will all the
events that were leading up to the failure.

BUG=none
TEST=manually tested and used to debug a failure.

Change-Id: I898f7d70e09124ec261c3eb5029ca1abb6b9a51d
Signed-off-by: Charlie Mooney <charliemooney@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/320462
Reviewed-by: Shyh-In Hwang <josephsih@chromium.org>
2 files changed