mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
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
Block a user