Skip to content

Commit

Permalink
selftests: fib_tests: Allow user to run a specific test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Ahern authored and David S. Miller committed Mar 16, 2018
1 parent 171a487 commit a511858
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tools/testing/selftests/net/fib_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a511858

Please sign in to comment.