test: skip NonexistentI2CBus if I2C is not supported

pull/1515/head
Sebastien Bourdeauducq 2020-09-01 16:47:04 +08:00
parent 91df3d7290
commit f294d039b3
1 changed files with 1 additions and 0 deletions

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