From: Tim Duesterhus Date: Fri, 3 Jul 2026 21:02:32 +0000 (+0200) Subject: REGTESTS: Remove unused `add_range_to_test_list` function from `scripts/run-regtests.sh` X-Git-Tag: v3.5-dev2~10 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/static/gitweb.js?a=commitdiff_plain;h=788219f9059aaa686df5fed86956923fa1e54b93;p=haproxy.git REGTESTS: Remove unused `add_range_to_test_list` function from `scripts/run-regtests.sh` This function is unused since dc1a3bd99972c7f6ab7462ce05fb95ad1f651862 which removed the `LEVEL` option. --- diff --git a/scripts/run-regtests.sh b/scripts/run-regtests.sh index 0fda975f2..0e401ee0b 100755 --- a/scripts/run-regtests.sh +++ b/scripts/run-regtests.sh @@ -64,45 +64,6 @@ EOF exit 0 } -add_range_to_test_list() -{ - level0="*.vtc" - level1="h*.vtc" - level2="s*.vtc" - level3="l*.vtc" - level4="b*.vtc" - level5="k*.vtc" - level6="e*.vtc" - - new_range=$(echo $1 | tr '-' ' ') - non_digit=$(echo $new_range | grep '[^0-9 ]') - if [ -n "$non_digit" ] ; then - return - fi - if [ "$new_range" = "$1" ] ; then - if [ $1 -gt 6 ] ; then - return - fi - eval echo '$'level$1 - return - fi - if [ -z "$new_range" ] ; then - return - fi - list= - for l in $(seq $new_range) ; do - if [ -n "l" ] ; then - if [ -z "$list" ] ; then - list="$(eval echo '$'level${l})" - else - list="$list $(eval echo '$'level${l})" - fi - fi - done - - echo $list -} - _startswith() { _str="$1" _sub="$2"