aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/forwarding/tc_shblocks.sh
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2018-03-01 13:49:30 -0800
committerDavid S. Miller <davem@davemloft.net>2018-03-01 21:19:02 -0500
commit198979be6c16aa62025d5a47680f2c7849b7e64c (patch)
treeac773524647c2cbd5c5c8fbb0b1d827308c35063 /tools/testing/selftests/net/forwarding/tc_shblocks.sh
parentfib_rules: FRA_GENERIC_POLICY updates for ip proto, sport and dport attrs (diff)
downloadlinux-dev-198979be6c16aa62025d5a47680f2c7849b7e64c.tar.xz
linux-dev-198979be6c16aa62025d5a47680f2c7849b7e64c.zip
selftests: forwarding: Only check tc version for tc tests
Capabilities of tc command are irrelevant for router tests: $ ./router.sh SKIP: iproute2 too old, missing shared block support Add a CHECK_TC flag and only check tc capabilities if set. Add flag to tc_common.sh and have it sourced before lib.sh Also, if the command lacks some feature the test should exit non-0. Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/forwarding/tc_shblocks.sh')
-rwxr-xr-xtools/testing/selftests/net/forwarding/tc_shblocks.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/forwarding/tc_shblocks.sh b/tools/testing/selftests/net/forwarding/tc_shblocks.sh
index cfc8a2ace388..077b98048ef4 100755
--- a/tools/testing/selftests/net/forwarding/tc_shblocks.sh
+++ b/tools/testing/selftests/net/forwarding/tc_shblocks.sh
@@ -2,8 +2,8 @@
# SPDX-License-Identifier: GPL-2.0
NUM_NETIFS=4
-source lib.sh
source tc_common.sh
+source lib.sh
tcflags="skip_hw"