提交 a511858c 编写于 作者: D David Ahern 提交者: 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: NDavid Ahern <dsahern@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 171a4871
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册