Merge branch 'sg/test-lib-simplify-expr-away'
Code cleanup. * sg/test-lib-simplify-expr-away: test-lib: simplify '--option=value' parsingmaint
commit
3944f903eb
|
@ -202,13 +202,13 @@ do
|
||||||
}
|
}
|
||||||
run_list=$1; shift ;;
|
run_list=$1; shift ;;
|
||||||
--run=*)
|
--run=*)
|
||||||
run_list=$(expr "z$1" : 'z[^=]*=\(.*\)'); shift ;;
|
run_list=${1#--*=}; shift ;;
|
||||||
-h|--h|--he|--hel|--help)
|
-h|--h|--he|--hel|--help)
|
||||||
help=t; shift ;;
|
help=t; shift ;;
|
||||||
-v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
|
-v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
|
||||||
verbose=t; shift ;;
|
verbose=t; shift ;;
|
||||||
--verbose-only=*)
|
--verbose-only=*)
|
||||||
verbose_only=$(expr "z$1" : 'z[^=]*=\(.*\)')
|
verbose_only=${1#--*=}
|
||||||
shift ;;
|
shift ;;
|
||||||
-q|--q|--qu|--qui|--quie|--quiet)
|
-q|--q|--qu|--qui|--quie|--quiet)
|
||||||
# Ignore --quiet under a TAP::Harness. Saying how many tests
|
# Ignore --quiet under a TAP::Harness. Saying how many tests
|
||||||
|
@ -222,15 +222,15 @@ do
|
||||||
valgrind=memcheck
|
valgrind=memcheck
|
||||||
shift ;;
|
shift ;;
|
||||||
--valgrind=*)
|
--valgrind=*)
|
||||||
valgrind=$(expr "z$1" : 'z[^=]*=\(.*\)')
|
valgrind=${1#--*=}
|
||||||
shift ;;
|
shift ;;
|
||||||
--valgrind-only=*)
|
--valgrind-only=*)
|
||||||
valgrind_only=$(expr "z$1" : 'z[^=]*=\(.*\)')
|
valgrind_only=${1#--*=}
|
||||||
shift ;;
|
shift ;;
|
||||||
--tee)
|
--tee)
|
||||||
shift ;; # was handled already
|
shift ;; # was handled already
|
||||||
--root=*)
|
--root=*)
|
||||||
root=$(expr "z$1" : 'z[^=]*=\(.*\)')
|
root=${1#--*=}
|
||||||
shift ;;
|
shift ;;
|
||||||
--chain-lint)
|
--chain-lint)
|
||||||
GIT_TEST_CHAIN_LINT=1
|
GIT_TEST_CHAIN_LINT=1
|
||||||
|
|
Loading…
Reference in New Issue