mirror of
https://github.com/git/git.git
synced 2024-11-24 02:17:02 +08:00
Merge branch 'sg/test-lib-simplify-expr-away' into HEAD
Code cleanup. * sg/test-lib-simplify-expr-away: test-lib: simplify '--option=value' parsing
This commit is contained in:
commit
777dec64bd
@ -202,13 +202,13 @@ do
|
||||
}
|
||||
run_list=$1; shift ;;
|
||||
--run=*)
|
||||
run_list=$(expr "z$1" : 'z[^=]*=\(.*\)'); shift ;;
|
||||
run_list=${1#--*=}; shift ;;
|
||||
-h|--h|--he|--hel|--help)
|
||||
help=t; shift ;;
|
||||
-v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
|
||||
verbose=t; shift ;;
|
||||
--verbose-only=*)
|
||||
verbose_only=$(expr "z$1" : 'z[^=]*=\(.*\)')
|
||||
verbose_only=${1#--*=}
|
||||
shift ;;
|
||||
-q|--q|--qu|--qui|--quie|--quiet)
|
||||
# Ignore --quiet under a TAP::Harness. Saying how many tests
|
||||
@ -222,15 +222,15 @@ do
|
||||
valgrind=memcheck
|
||||
shift ;;
|
||||
--valgrind=*)
|
||||
valgrind=$(expr "z$1" : 'z[^=]*=\(.*\)')
|
||||
valgrind=${1#--*=}
|
||||
shift ;;
|
||||
--valgrind-only=*)
|
||||
valgrind_only=$(expr "z$1" : 'z[^=]*=\(.*\)')
|
||||
valgrind_only=${1#--*=}
|
||||
shift ;;
|
||||
--tee)
|
||||
shift ;; # was handled already
|
||||
--root=*)
|
||||
root=$(expr "z$1" : 'z[^=]*=\(.*\)')
|
||||
root=${1#--*=}
|
||||
shift ;;
|
||||
--chain-lint)
|
||||
GIT_TEST_CHAIN_LINT=1
|
||||
|
Loading…
Reference in New Issue
Block a user