forked from M-Labs/artiq
test: skip NonexistentI2CBus if I2C is not supported
This commit is contained in:
parent
91df3d7290
commit
f294d039b3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue