The -i and -I options iterate the whole test list, but their single-letter names don't describe what they do. Add the long aliases --iterate and --iterate-while-successful so that they can be named consistently with the --loop family of per-test looping options that will be added next. Signed-off-by: Zorro Lang --- check | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/check b/check index afe855bc..538f22cf 100755 --- a/check +++ b/check @@ -62,8 +62,9 @@ General options: -b brief test summary -d dump test output to stdout -h, --help show this help message - -i iterate the test list times - -I iterate the test list times, but stops + -i, --iterate iterate the test list times + -I, --iterate-while-successful + iterate the test list times, but stops iterating further in case of any test failure -l line mode diff -L loop tests times following a failure, measuring @@ -388,7 +389,7 @@ process_remain_tests() parse_check_args() { local short_opts="g:x:X:e:E:s:S:lnri:I:TdbR:L:h" - local long_opts="fs:,exact-order,large-fs,extra-space:,udiff,help" + local long_opts="fs:,exact-order,large-fs,extra-space:,udiff,help,iterate:,iterate-while-successful:" compat_old_option "$@" @@ -466,11 +467,11 @@ parse_check_args() fi exact_order=true ;; - -i) + -i|--iterate) iterations=$2 shift ;; - -I) + -I|--iterate-while-successful) iterations=$2 istop=true shift -- 2.56.0