mirror of https://github.com/m-labs/artiq.git
test: verify that RTIO collisions appear in log
This commit is contained in:
parent
432c6b99e2
commit
6caab4d10b
|
@ -383,14 +383,19 @@ class CoredeviceTest(ExperimentCase):
|
||||||
with self.assertRaises(RTIOSequenceError):
|
with self.assertRaises(RTIOSequenceError):
|
||||||
self.execute(SequenceError)
|
self.execute(SequenceError)
|
||||||
|
|
||||||
# TODO: capture core device log
|
def test_collision(self):
|
||||||
# def test_collision(self):
|
comm = self.device_mgr.get("core").comm
|
||||||
# with self.assertRaises(RTIOCollision):
|
comm.clear_log()
|
||||||
# self.execute(Collision)
|
self.execute(Collision)
|
||||||
|
log = comm.get_log()
|
||||||
|
self.assertIn("RTIO collision", log)
|
||||||
|
|
||||||
# def test_address_collision(self):
|
def test_address_collision(self):
|
||||||
# with self.assertRaises(RTIOCollision):
|
comm = self.device_mgr.get("core").comm
|
||||||
# self.execute(AddressCollision)
|
comm.clear_log()
|
||||||
|
self.execute(AddressCollision)
|
||||||
|
log = comm.get_log()
|
||||||
|
self.assertIn("RTIO collision", log)
|
||||||
|
|
||||||
def test_watchdog(self):
|
def test_watchdog(self):
|
||||||
# watchdog only works on the device
|
# watchdog only works on the device
|
||||||
|
|
Loading…
Reference in New Issue