The -L option reruns a test times after its first failure. Give it the long name --loop-on-fail so that all the per-test looping options can be described consistently as a --loop family. Signed-off-by: Zorro Lang --- check | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/check b/check index b30532cf..96e4f2fd 100755 --- a/check +++ b/check @@ -70,7 +70,7 @@ General options: 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 + -L, --loop-on-fail loop tests times following a failure, measuring aggregate pass/fail metrics --loop run each test times, measuring aggregate pass/fail metrics (test fails if any run fails) @@ -402,7 +402,7 @@ _set_loop_mode() [[ $count =~ ^[0-9]+$ ]] || usage if [ -n "$loop_mode" ] && [ "$loop_mode" != "$mode" ]; then - echo "check: conflicting loop modes: -L and --loop are mutually exclusive" >&2 + echo "check: conflicting loop modes: -L, --loop-on-fail and --loop are mutually exclusive" >&2 usage fi loop_mode="$mode" @@ -418,7 +418,7 @@ _set_loop_mode() 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,iterate:,iterate-while-successful:,loop:" + local long_opts="fs:,exact-order,large-fs,extra-space:,udiff,help,iterate:,iterate-while-successful:,loop:,loop-on-fail:" compat_old_option "$@" @@ -526,7 +526,7 @@ parse_check_args() export SCRATCH_DEV_EMPTY_SPACE="$2" shift ;; - -L) + -L|--loop-on-fail) _set_loop_mode on-fail "$2" shift ;; -- 2.56.0