Commit 24f1dcee authored by Federico Vaga's avatar Federico Vaga

tst: properly release resources after test

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 8f9e9329
......@@ -9,7 +9,9 @@ from PySPEC import PySPEC
@pytest.fixture(scope="function")
def spec():
return PySPEC(pytest.pci_id)
spec_dev = PySPEC(pytest.pci_id)
yield spec_dev
spec_dev.dma_stop()
def pytest_addoption(parser):
parser.addoption("--pci-id",
......
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