From dc913f03d6cf8b1cb8b7a1364351792152a2faca Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Mon, 18 Sep 2023 12:28:22 +0200 Subject: tests/shell: skip destroy tests if kernel lacks support Destroy support was added for table/flowtable/chain etc. in a single commit, so no need to add capability tests for each destroy subtype. Signed-off-by: Florian Westphal Signed-off-by: Thomas Haller --- tests/shell/testcases/sets/0072destroy_0 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/shell/testcases/sets') diff --git a/tests/shell/testcases/sets/0072destroy_0 b/tests/shell/testcases/sets/0072destroy_0 index fd1d6450..6399dd0f 100755 --- a/tests/shell/testcases/sets/0072destroy_0 +++ b/tests/shell/testcases/sets/0072destroy_0 @@ -1,5 +1,7 @@ #!/bin/sh -e +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_destroy) + $NFT add table x # pass for non-existent set -- cgit v1.2.3