forked from M-Labs/artiq
1
0
Fork 0

test: add ARTIQ_NO_PERIPHERALS environment variable to disable tests requiring non-core devices

This commit is contained in:
Sebastien Bourdeauducq 2015-03-08 11:40:50 +01:00
parent 0f007cb1a7
commit 407477bc5a
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,8 @@ from artiq.devices.lda.driver import Lda, Ldasim
from artiq.language.units import dB 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: class GenericLdaTest:

View File

@ -6,7 +6,8 @@ from artiq.devices.thorlabs_tcube.driver import Tdc, Tpz, TdcSim, TpzSim
from artiq.language.units import V 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: class GenericTdcTest: