mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-22 10:38:37 +00:00
idle: do not attempt to turn off screen on Linux
In the teardown, if screen_off was not set, only ensure that the screen is on for Android targets.
This commit is contained in:
parent
1da244552f
commit
ac86304f35
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user