mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-28 20:53:35 +08:00
test.full_stack: add ARTIQ_NO_HARDWARE environment variable
This commit is contained in:
parent
42accd5de4
commit
62677ed660
@ -1,11 +1,15 @@
|
||||
import unittest
|
||||
from operator import itemgetter
|
||||
import os
|
||||
|
||||
from artiq import *
|
||||
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"))
|
||||
|
||||
|
||||
def _run_on_device(k_class, **parameters):
|
||||
with comm_serial.Comm() as comm:
|
||||
coredev = core.Core(comm)
|
||||
@ -132,6 +136,7 @@ class _Exceptions(AutoContext):
|
||||
self.trace.append(104)
|
||||
|
||||
|
||||
@unittest.skipIf(NO_HARDWARE, "no hardware")
|
||||
class ExecutionCase(unittest.TestCase):
|
||||
def test_primes(self):
|
||||
l_device, l_host = [], []
|
||||
@ -203,6 +208,7 @@ class _RTIOSequenceError(AutoContext):
|
||||
self.o.pulse(25*us)
|
||||
|
||||
|
||||
@unittest.skipIf(NO_HARDWARE, "no hardware")
|
||||
class RTIOCase(unittest.TestCase):
|
||||
def test_loopback(self):
|
||||
npulses = 4
|
||||
|
Loading…
Reference in New Issue
Block a user