mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-29 22:24:51 +00:00 
			
		
		
		
	cleaning up initialize()
- standardisded on a single context argument - removed Device.init() no longer necessary as initilize now automatically gets propagated up the hierarchy. Renamed the existing use of it to "initilize". - related pylint cleanup.
This commit is contained in:
		| @@ -41,7 +41,7 @@ class Nexus10Device(AndroidDevice): | ||||
|         Parameter('core_clusters', default=[0, 0], override=True), | ||||
|     ] | ||||
|  | ||||
|     def init(self, context, *args, **kwargs): | ||||
|     def initialize(self, context): | ||||
|         time.sleep(self.long_delay) | ||||
|         self.execute('svc power stayon true', check_exit_code=False) | ||||
|         time.sleep(self.long_delay) | ||||
|   | ||||
| @@ -44,7 +44,7 @@ class Note3Device(AndroidDevice): | ||||
|         super(Note3Device, self).__init__(**kwargs) | ||||
|         self._just_rebooted = False | ||||
|  | ||||
|     def init(self, context): | ||||
|     def initialize(self, context): | ||||
|         self.execute('svc power stayon true', check_exit_code=False) | ||||
|  | ||||
|     def reset(self): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user