Commit fe1b5c53 authored by Federico Vaga's avatar Federico Vaga

tst: do twice the DMA read and compare

We can see if the controller returns random garbage
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 83be3241
......@@ -40,10 +40,14 @@ class TestDma(object):
- 1, 2, 3, 4: performing transfers of these sizes led to a failure
"""
spec.dma_start()
data = spec.dma_read(dma_size)
assert len(data) == dma_size
data1 = spec.dma_read(0, dma_size)
assert len(data1) == dma_size
data2 = spec.dma_read(0, dma_size)
assert len(data2) == dma_size
spec.dma_stop()
assert data1 == data2
@pytest.mark.parametrize("dma_size",
[0, 1, 2, 3] + \
[5, 7, 9] + \
......
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