From 407477bc5adf552c61856a3df1e4525bba4998e8 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 8 Mar 2015 11:40:50 +0100 Subject: [PATCH] test: add ARTIQ_NO_PERIPHERALS environment variable to disable tests requiring non-core devices --- artiq/test/lda.py | 3 ++- artiq/test/thorlabs_tcube.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/artiq/test/lda.py b/artiq/test/lda.py index f7c8e9cc1..846fba6e8 100644 --- a/artiq/test/lda.py +++ b/artiq/test/lda.py @@ -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: diff --git a/artiq/test/thorlabs_tcube.py b/artiq/test/thorlabs_tcube.py index 1f5da2828..d2bf4e338 100644 --- a/artiq/test/thorlabs_tcube.py +++ b/artiq/test/thorlabs_tcube.py @@ -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: