2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

test: skip NonexistentI2CBus if I2C is not supported

This commit is contained in:
Sebastien Bourdeauducq 2020-09-01 16:47:04 +08:00
parent 91df3d7290
commit f294d039b3

View File

@ -24,6 +24,7 @@ class I2CSwitch(EnvExperiment):
class NonexistentI2CBus(EnvExperiment):
def build(self):
self.setattr_device("core")
self.setattr_device("i2c_switch") # HACK: only run this test on boards with I2C
self.broken_switch = PCA9548(self._HasEnvironment__device_mgr, 255)
@kernel