1
0
Fork 0

selftests: fib_tests: Allow user to run a specific test

Allow a user to run just a specific fib test by setting the TEST
environment variable.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
hifive-unleashed-5.1
David Ahern 2018-03-13 08:29:40 -07:00 committed by David S. Miller
parent 171a48717b
commit a511858c75
1 changed files with 7 additions and 3 deletions

View File

@ -392,9 +392,13 @@ fib_carrier_test()
fib_test()
{
fib_unreg_test
fib_down_test
fib_carrier_test
if [ -n "$TEST" ]; then
eval $TEST
else
fib_unreg_test
fib_down_test
fib_carrier_test
fi
}
if [ "$(id -u)" -ne 0 ];then