diff options
author | David Ahern <dsahern@gmail.com> | 2018-03-13 08:29:40 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-16 11:28:39 -0400 |
commit | a511858c7536fab15a59a0a2aee14c5a909da23a (patch) | |
tree | c3ee91e8ad0c5e9829f8f3e9305c7ae31c2b5570 /tools | |
parent | 171a48717beeacb66be85c1e8e401111d3a0262c (diff) | |
download | linux-stable-a511858c7536fab15a59a0a2aee14c5a909da23a.tar.gz linux-stable-a511858c7536fab15a59a0a2aee14c5a909da23a.tar.bz2 linux-stable-a511858c7536fab15a59a0a2aee14c5a909da23a.zip |
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>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/selftests/net/fib_tests.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/testing/selftests/net/fib_tests.sh b/tools/testing/selftests/net/fib_tests.sh index 953254439e39..cfdeb35bfed5 100755 --- a/tools/testing/selftests/net/fib_tests.sh +++ b/tools/testing/selftests/net/fib_tests.sh @@ -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 |