mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-21 18:18:41 +00:00
servo_power: Added check for device platform.
Now checks to see if the device is running chromeOS.
This commit is contained in:
parent
63ff8987ea
commit
982069be32
@ -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)]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user