From 5f83041242ca0ff38a74d51b85e00047568c4933 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Mon, 18 Sep 2023 12:28:26 +0200 Subject: tests/shell: skip reset tests if kernel lacks support reset is implemented via flush + extra attribute, so older kernels perform a flush. This means .nft doesn't work, we need to check if the individual set contents/sets are still in place post-reset. Make this generic and permit use of feat.sh in addition to the simpler foo.nft feature files. Signed-off-by: Florian Westphal Signed-off-by: Thomas Haller --- tests/shell/testcases/sets/reset_command_0 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/shell/testcases/sets') diff --git a/tests/shell/testcases/sets/reset_command_0 b/tests/shell/testcases/sets/reset_command_0 index ad2e16a7..5e769fe6 100755 --- a/tests/shell/testcases/sets/reset_command_0 +++ b/tests/shell/testcases/sets/reset_command_0 @@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_reset_set) + set -e trap '[[ $? -eq 0 ]] || echo FAIL' EXIT -- cgit v1.2.3