Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: net: fib_rule_tests: fix support for running individual tests

parsing and usage of -t got missed in the previous patch.
this patch fixes it

Fixes: 816cda9ae531 ("selftests: net: fib_rule_tests: add support to select a test to run")
Signed-off-by: Alaa Mohamed <eng.alaamohamedsoliman.am@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Alaa Mohamed and committed by
David S. Miller
9c154ab4 13463f73

+23
+23
tools/testing/selftests/net/fib_rule_tests.sh
··· 303 303 log_section "IPv6 fib rule" 304 304 fib_rule6_test 305 305 } 306 + ################################################################################ 307 + # usage 308 + 309 + usage() 310 + { 311 + cat <<EOF 312 + usage: ${0##*/} OPTS 313 + 314 + -t <test> Test(s) to run (default: all) 315 + (options: $TESTS) 316 + EOF 317 + } 318 + 319 + ################################################################################ 320 + # main 321 + 322 + while getopts ":t:h" opt; do 323 + case $opt in 324 + t) TESTS=$OPTARG;; 325 + h) usage; exit 0;; 326 + *) usage; exit 1;; 327 + esac 328 + done 306 329 307 330 if [ "$(id -u)" -ne 0 ];then 308 331 echo "SKIP: Need root privileges"