mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 12:06:08 +00:00
workloads/jankbench: Update to check if running in a container.
Instead of using the os to determine whether the screen state should be checked, use target flag to see if running inside a container.
This commit is contained in:
parent
68e7fc0b99
commit
60b37995e0
@ -97,7 +97,7 @@ class Jankbench(ApkWorkload):
|
||||
elif self.pull_results_db and not self.target.is_rooted:
|
||||
raise ConfigError('pull_results_db set for an unrooted device')
|
||||
|
||||
if self.target.os is 'android':
|
||||
if not self.target.is_container:
|
||||
self.target.ensure_screen_is_on()
|
||||
|
||||
self.command = self._build_command()
|
||||
|
Loading…
x
Reference in New Issue
Block a user