forked from M-Labs/artiq
1
0
Fork 0

hardware_testbench: request controller termination

This commit is contained in:
Robert Jördens 2016-01-30 20:04:32 -07:00
parent 9fb5ef4d86
commit 0d18942869
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@ class ControllerCase(unittest.TestCase):
self.controllers = {} self.controllers = {}
def tearDown(self): def tearDown(self):
for name in self.controllers:
self.device_mgr.get(name).terminate()
self.device_mgr.close_devices() self.device_mgr.close_devices()
for name in list(self.controllers): for name in list(self.controllers):
self.stop_controller(name) self.stop_controller(name)