Commit a511858c authored by David Ahern's avatar David Ahern Committed by David S. Miller

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: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 171a4871
...@@ -392,9 +392,13 @@ fib_carrier_test() ...@@ -392,9 +392,13 @@ fib_carrier_test()
fib_test() fib_test()
{ {
fib_unreg_test if [ -n "$TEST" ]; then
fib_down_test eval $TEST
fib_carrier_test else
fib_unreg_test
fib_down_test
fib_carrier_test
fi
} }
if [ "$(id -u)" -ne 0 ];then if [ "$(id -u)" -ne 0 ];then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment