mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 11:22:41 +01: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.poller = None
|
||||||
self.data = None
|
self.data = None
|
||||||
self.stopped = True
|
self.stopped = True
|
||||||
|
|
||||||
|
if self.device.platform != "chromeos":
|
||||||
|
raise InstrumentError("servo_power instrument only supports Chrome OS devices.")
|
||||||
|
|
||||||
if not self.labels:
|
if not self.labels:
|
||||||
self.labels = ["PORT_{}".format(channel) for channel, _ in enumerate(self.power_domains)]
|
self.labels = ["PORT_{}".format(channel) for channel, _ in enumerate(self.power_domains)]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user