1
0
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:
Sebastian Goscik 2016-06-08 10:57:22 +01:00
parent 63ff8987ea
commit 982069be32

View File

@ -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)]