video_PowerConsumption: add capability argument
BUG=chromium:897563
TEST=run video_PowerConsumption.h264 on Grunt
Change-Id: Idb49320b5e3d5af9dd607e17cf7ec5f1e51d4b09
Reviewed-on: https://chromium-review.googlesource.com/1293392
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Pin-chih Lin <johnylin@chromium.org>
Reviewed-by: Shuo-Peng Liao <deanliao@google.com>
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
diff --git a/server/site_tests/video_PowerConsumption/control.h264 b/server/site_tests/video_PowerConsumption/control.h264
index 870c26a..f5e221e 100644
--- a/server/site_tests/video_PowerConsumption/control.h264
+++ b/server/site_tests/video_PowerConsumption/control.h264
@@ -37,7 +37,8 @@
client.power_off()
client_at = autotest.Autotest(client)
client_at.run_test("video_PlaybackPerf", video_name=VIDEO_NAME,
- video_description=VIDEO_DESCRIPTION, power_test=True)
+ video_description=VIDEO_DESCRIPTION,
+ capability='hw_dec_h264_1080_30', power_test=True)
finally:
client.power_on()
diff --git a/server/site_tests/video_PowerConsumption/control.vp8 b/server/site_tests/video_PowerConsumption/control.vp8
index 27a2c6b..62af213 100644
--- a/server/site_tests/video_PowerConsumption/control.vp8
+++ b/server/site_tests/video_PowerConsumption/control.vp8
@@ -37,7 +37,8 @@
client.power_off()
client_at = autotest.Autotest(client)
client_at.run_test("video_PlaybackPerf", video_name=VIDEO_NAME,
- video_description=VIDEO_DESCRIPTION, power_test=True)
+ video_description=VIDEO_DESCRIPTION,
+ capability='hw_dec_vp8_1080_30', power_test=True)
finally:
client.power_on()
diff --git a/server/site_tests/video_PowerConsumption/control.vp9 b/server/site_tests/video_PowerConsumption/control.vp9
index 5678148..72b180a 100644
--- a/server/site_tests/video_PowerConsumption/control.vp9
+++ b/server/site_tests/video_PowerConsumption/control.vp9
@@ -37,7 +37,8 @@
client.power_off()
client_at = autotest.Autotest(client)
client_at.run_test("video_PlaybackPerf", video_name=VIDEO_NAME,
- video_description=VIDEO_DESCRIPTION, power_test=True)
+ video_description=VIDEO_DESCRIPTION,
+ capability='hw_dec_vp9_1080_30', power_test=True)
finally:
client.power_on()