Commit 4dfbb86c authored by Federico Vaga's avatar Federico Vaga

tst: add dma() fixture for simpler and faster tests

Signed-off-by: Federico Vaga's avatarFederico Vaga <>
parent 80e2f825
......@@ -12,6 +12,12 @@ def spec():
spec_dev = PySPEC(pytest.pci_id)
yield spec_dev
def dma():
spec = PySPEC(pytest.pci_id)
with spec.dma() as spec_dma:
yield spec_dma
def pytest_addoption(parser):
required=True, help="SPEC PCI Identifier")
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment