mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 15:12:25 +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:
		| @@ -97,7 +97,7 @@ class Jankbench(ApkWorkload): | |||||||
|         elif self.pull_results_db and not self.target.is_rooted: |         elif self.pull_results_db and not self.target.is_rooted: | ||||||
|             raise ConfigError('pull_results_db set for an unrooted device') |             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.target.ensure_screen_is_on() | ||||||
|  |  | ||||||
|         self.command = self._build_command() |         self.command = self._build_command() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user