check: add CLI option to repeat tests
authorDave Chinner <dchinner@redhat.com>
Wed, 8 Jul 2020 05:35:13 +0000 (15:35 +1000)
committerEryu Guan <guaneryu@gmail.com>
Sun, 19 Jul 2020 16:49:26 +0000 (00:49 +0800)
commitffa3e99f229438d4ce33cdf156f51a33a2917347
tree04d79642a22daacf2cfdf85144a1c26fd95ebaa8
parent7db17edfbac914d38d1e01060d3411ac38c39df8
check: add CLI option to repeat tests

Frequently when trying to reproduce a problem I want to run a set of
specific tests in a loop, over and over again. I run fstests from a
set of run scripts that have non-trivial overhead (e.g. patterning
block devices before the runs start), so if all I want to do is run
the same test 100x, using a shell loop over the entire run
scripts reduces the iteration rate substantially.

Hence add an option to check to allow fstests to loop a number of
times over the configured test set without stopping.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
check