mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
test/thorlabs_tcube: fix default serial port
This commit is contained in:
parent
28bce9ee40
commit
ac697e3248
@ -137,11 +137,8 @@ class GenericTpzTest:
|
||||
@unittest.skipIf(no_hardware, "no hardware")
|
||||
class TestTdc(unittest.TestCase, GenericTdcTest):
|
||||
def setUp(self):
|
||||
serial = os.getenv("ARTIQ_TDC001_SERIAL")
|
||||
args = dict()
|
||||
if serial is not None:
|
||||
args["serial_dev"] = serial
|
||||
self.cont = Tdc(**args)
|
||||
serial_dev = os.getenv("ARTIQ_TDC001_SERIAL", "/dev/ttyUSB0")
|
||||
self.cont = Tdc(serial_dev=serial_dev)
|
||||
|
||||
|
||||
class TestTdcSim(unittest.TestCase, GenericTdcTest):
|
||||
@ -152,11 +149,8 @@ class TestTdcSim(unittest.TestCase, GenericTdcTest):
|
||||
@unittest.skipIf(no_hardware, "no hardware")
|
||||
class TestTpz(unittest.TestCase, GenericTpzTest):
|
||||
def setUp(self):
|
||||
serial = os.getenv("ARTIQ_TPZ001_SERIAL")
|
||||
args = dict()
|
||||
if serial is not None:
|
||||
args["serial_dev"] = serial
|
||||
self.cont = Tpz(**args)
|
||||
serial_dev = os.getenv("ARTIQ_TPZ001_SERIAL", "/dev/ttyUSB0")
|
||||
self.cont = Tpz(serial_dev=serial_dev)
|
||||
|
||||
|
||||
class TestTpzSim(unittest.TestCase, GenericTpzTest):
|
||||
|
Loading…
Reference in New Issue
Block a user