mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 15:12:25 +00:00 
			
		
		
		
	servo_power: Added check for device platform.
Now checks to see if the device is running chromeOS.
This commit is contained in:
		| @@ -117,6 +117,10 @@ class ServoPowerMonitor(Instrument): | ||||
|         self.poller = None | ||||
|         self.data = None | ||||
|         self.stopped = True | ||||
|  | ||||
|         if self.device.platform != "chromeos": | ||||
|             raise InstrumentError("servo_power instrument only supports Chrome OS devices.") | ||||
|  | ||||
|         if not self.labels: | ||||
|             self.labels = ["PORT_{}".format(channel) for channel, _ in enumerate(self.power_domains)] | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user