diff options
author | David S. Miller <davem@davemloft.net> | 2018-05-03 12:54:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-03 12:54:32 -0400 |
commit | 41f405460a0471e2183a6d4149608a964f6dc63f (patch) | |
tree | d0681897df81599850bbacafefec16b44121bdd8 /tools/testing/selftests/net/forwarding/lib.sh | |
parent | 5f110899ae1494d47678f88e3c53c4c5f67077c4 (diff) | |
parent | 0eb8053c147b012dcb6c2c1deeb4d069a5b35fd9 (diff) |
Merge branch 'selftests-forwarding-Two-enhancements'
Ido Schimmel says:
====================
selftests: forwarding: Two enhancements
First patch increases the maximum deviation in the multipath tests which
proved to be too low in some cases.
Second patch allows user to run only specific tests from each file using
the TESTS environment variable. This granularity is needed in setups
where not all the tests can pass.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/forwarding/lib.sh')
-rw-r--r-- | tools/testing/selftests/net/forwarding/lib.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh index a066ca536ac4..061c87bbf77c 100644 --- a/tools/testing/selftests/net/forwarding/lib.sh +++ b/tools/testing/selftests/net/forwarding/lib.sh @@ -477,6 +477,15 @@ matchall_sink_create() action drop } +tests_run() +{ + local current_test + + for current_test in ${TESTS:-$ALL_TESTS}; do + $current_test + done +} + ############################################################################## # Tests |