Add disk power state logging to power_LoadTest

Adds a new class to the power_status module that periodically polls disk
power state (through raw ioctls from within Python) and records the
seconds the disk is in each state. This feature is then added as a
reporting value to the results of power_LoadTest.

BUG=chromium-os:34443
TEST=manually ran power_LoadTest on a lumpy

Change-Id: I623073ef7922d668f6ddf781b09eeffe6c70ee5f
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/34527
Reviewed-by: Sameer Nanda <snanda@chromium.org>
2 files changed