forked from M-Labs/artiq
test: add ARTIQ_NO_PERIPHERALS environment variable to disable tests requiring non-core devices
This commit is contained in:
parent
0f007cb1a7
commit
407477bc5a
@ -5,7 +5,8 @@ from artiq.devices.lda.driver import Lda, Ldasim
|
||||
from artiq.language.units import dB
|
||||
|
||||
|
||||
no_hardware = bool(os.getenv("ARTIQ_NO_HARDWARE"))
|
||||
no_hardware = bool(os.getenv("ARTIQ_NO_HARDWARE")) \
|
||||
or bool(os.getenv("ARTIQ_NO_PERIPHERALS"))
|
||||
|
||||
|
||||
class GenericLdaTest:
|
||||
|
@ -6,7 +6,8 @@ from artiq.devices.thorlabs_tcube.driver import Tdc, Tpz, TdcSim, TpzSim
|
||||
from artiq.language.units import V
|
||||
|
||||
|
||||
no_hardware = bool(os.getenv("ARTIQ_NO_HARDWARE"))
|
||||
no_hardware = bool(os.getenv("ARTIQ_NO_HARDWARE")) \
|
||||
or bool(os.getenv("ARTIQ_NO_PERIPHERALS"))
|
||||
|
||||
|
||||
class GenericTdcTest:
|
||||
|
Loading…
Reference in New Issue
Block a user