Commit e66d5c79 authored by Federico Vaga's avatar Federico Vaga

tst: focus more on the second fractions

Waiting for potentially 1 minute for each test leads to a very long
verification time with little just 10 tests done. I re-parametrized the
test_output_input_start test to do more with fraction and focus less on
seconds
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 0264df2f
......@@ -136,9 +136,12 @@ class TestFmcfdLoop(object):
"i:{:d}, cur: {:s}, prev: {:s}".format(i, str(ts[i]),
str(prev_ts))
@pytest.mark.parametrize("start_rel", [FmcFineDelayTime(random.randrange(0, 60),
random.randrange(0, 125000000),
0) for i in range(10)])
@pytest.mark.parametrize("start_rel", [FmcFineDelayTime(0, random.randrange(1, 125000000),
0) for i in range(50)] +
[FmcFineDelayTime(1, random.randrange(1, 125000000),
0) for i in range(5)] +
[FmcFineDelayTime(2, random.randrange(1, 125000000),
0) for i in range(5)])
@pytest.mark.parametrize("wr", [False, True])
def test_output_input_start(self, fmcfd_chan, fmcfd_tdc, wr, start_rel):
"""
......
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