]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
net: selftests: Fix optstring
authorBenjamin Poirier <bpoirier@nvidia.com>
Tue, 16 May 2023 18:49:24 +0000 (14:49 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2023 12:01:06 +0000 (13:01 +0100)
The cited commit added a stray colon to the 'v' option. That makes the
option work incorrectly.

ex:
tools/testing/selftests/net# ./fib_nexthops.sh -v
(should enable verbose mode, instead it shows help text due to missing arg)

Fixes: 5feba4727395 ("selftests: fib_nexthops: Make ping timeout configurable")
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fib_nexthops.sh

index a47b26ab48f23b0ace3e247bb61cb8bcd9701db0..0f5e88c8f4ffece3833aab1929a119b22a9e063f 100755 (executable)
@@ -2283,7 +2283,7 @@ EOF
 ################################################################################
 # main
 
-while getopts :t:pP46hv:w: o
+while getopts :t:pP46hvw: o
 do
        case $o in
                t) TESTS=$OPTARG;;