From 391ff10345e7f690dad3217aa14e6b7bfba557c9 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 7 Nov 2014 14:15:40 -0800 Subject: [PATCH] test/full_stack: style and add note about loopback test connections --- test/full_stack.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/full_stack.py b/test/full_stack.py index 7b87d7cfe..73203b636 100644 --- a/test/full_stack.py +++ b/test/full_stack.py @@ -7,7 +7,7 @@ from artiq.coredevice import comm_serial, core, runtime_exceptions, rtio from artiq.sim import devices as sim_devices -NO_HARDWARE = bool(os.getenv("ARTIQ_NO_HARDWARE")) +no_hardware = bool(os.getenv("ARTIQ_NO_HARDWARE")) def _run_on_device(k_class, **parameters): @@ -136,7 +136,7 @@ class _Exceptions(AutoContext): self.trace.append(104) -@unittest.skipIf(NO_HARDWARE, "no hardware") +@unittest.skipIf(no_hardware, "no hardware") class ExecutionCase(unittest.TestCase): def test_primes(self): l_device, l_host = [], [] @@ -208,8 +208,10 @@ class _RTIOSequenceError(AutoContext): self.o.pulse(25*us) -@unittest.skipIf(NO_HARDWARE, "no hardware") +@unittest.skipIf(no_hardware, "no hardware") class RTIOCase(unittest.TestCase): + # Connect channels 0 and 1 together for this test + # (C11 and C13 on Papilio Pro) def test_loopback(self): npulses = 4 with comm_serial.Comm() as comm: