Add report type to the filename to stop clobbering

This CL adds a feature requested by Allion -- instead of simply
generating a report that is always called report.html, now the touch
firmware test will prepend the "mode" to the filename, generating
  "full_report.html"
  "noise_report.html"
  or
  "performance_report.html"
This way if the operator runs a performance tests, and starts a noise
test before copying the report off the disk, it won't be clobbered on
accident.  Using timestamps/etc could easily end up consuming the entire
harddrive if they are not deleted which might result in wasted test
runs, so this way they will only clobber the last run of the same MODE,
which is a more reasonable thing to clobber.

BUG=chromium:620090
TEST=manually tested, the code ran fine and the report filename was as
expected.

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