mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-09 19:10:45 +01:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
1 parent
171a48717b
commit
a511858c75
1 file changed
+7
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user