mirror of https://github.com/m-labs/artiq.git
tests: misc fixes, cleanup
This commit is contained in:
parent
107e2fedf4
commit
d05d720b19
|
@ -65,6 +65,5 @@ class ControllerCase(unittest.TestCase):
|
|||
async def test():
|
||||
await self.start("lda_sim", entry)
|
||||
remote = await self.get_client(entry["host"], entry["port"])
|
||||
await remote.close()
|
||||
|
||||
self.loop.run_until_complete(test())
|
||||
|
|
|
@ -46,6 +46,7 @@ class ControllerCase(unittest.TestCase):
|
|||
def stop_controller(self, name, default_timeout=1):
|
||||
entry, proc = self.controllers[name]
|
||||
t = entry.get("term_timeout", default_timeout)
|
||||
proc.terminate()
|
||||
try:
|
||||
proc.wait(t)
|
||||
except subprocess.TimeoutExpired:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import unittest
|
||||
import time
|
||||
|
||||
from artiq.devices.thorlabs_tcube.driver import Tdc, Tpz, TdcSim, TpzSim
|
||||
from artiq.devices.thorlabs_tcube.driver import TdcSim, TpzSim
|
||||
from artiq.language.units import V
|
||||
from artiq.test.hardware_testbench import ControllerCase
|
||||
|
||||
|
|
Loading…
Reference in New Issue