From 279654904d5186430588b475501b2ca0d3ab6517 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 14 Nov 2023 16:57:22 +0100 Subject: tests: shell: skip if kernel does not support flowtable counter Check if kernel provides flowtable counter supports which is available since 53c2b2899af7 ("netfilter: flowtable: add counter support"). Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/flowtable/0012flowtable_variable_0 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/shell/testcases/flowtable/0012flowtable_variable_0') diff --git a/tests/shell/testcases/flowtable/0012flowtable_variable_0 b/tests/shell/testcases/flowtable/0012flowtable_variable_0 index 080059d2..9c03820f 100755 --- a/tests/shell/testcases/flowtable/0012flowtable_variable_0 +++ b/tests/shell/testcases/flowtable/0012flowtable_variable_0 @@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_flowtable_counter) + set -e iface_cleanup() { -- cgit v1.2.3