1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-19 04:21:17 +00:00

Merge pull request #390 from setrofim/next

idle: do not attempt to turn off screen on Linux
This commit is contained in:
marcbonnici 2017-05-15 10:58:35 +01:00 committed by GitHub
commit 7bd55db6e4

View File

@ -88,5 +88,6 @@ class IdleWorkload(Workload):
self.target.sleep(1) self.target.sleep(1)
if self.screen_off and self.old_screen_state: if self.screen_off and self.old_screen_state:
self.target.ensure_screen_is_on() self.target.ensure_screen_is_on()
elif not self.screen_off and not self.old_screen_state: elif (self.target.os == 'android' and
not self.screen_off and not self.old_screen_state):
self.target.ensure_screen_is_off() self.target.ensure_screen_is_off()