Skip to content

Commit a511858

Browse files
dsaherndavem330
authored andcommitted
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>
1 parent 171a487 commit a511858

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tools/testing/selftests/net/fib_tests.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,13 @@ fib_carrier_test()
392392

393393
fib_test()
394394
{
395-
fib_unreg_test
396-
fib_down_test
397-
fib_carrier_test
395+
if [ -n "$TEST" ]; then
396+
eval $TEST
397+
else
398+
fib_unreg_test
399+
fib_down_test
400+
fib_carrier_test
401+
fi
398402
}
399403

400404
if [ "$(id -u)" -ne 0 ];then

0 commit comments

Comments
 (0)