netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nft] tests: shell: flush ruleset with -U after feature probing
@ 2023-12-05 15:43 Pablo Neira Ayuso
  2023-12-05 19:29 ` Florian Westphal
  0 siblings, 1 reply; 12+ messages in thread
From: Pablo Neira Ayuso @ 2023-12-05 15:43 UTC (permalink / raw)
  To: netfilter-devel

feature probe script leave a ruleset in place, flush it once probing is
complete.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
 tests/shell/run-tests.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/shell/run-tests.sh b/tests/shell/run-tests.sh
index e54f8bf3e3ee..86c8312683cc 100755
--- a/tests/shell/run-tests.sh
+++ b/tests/shell/run-tests.sh
@@ -602,6 +602,9 @@ for feat in "${_HAVE_OPTS[@]}" ; do
 		val="$(bool_n "${!var}")"
 	fi
 	eval "export $var=$val"
+	if [ "$NFT_TEST_HAS_UNSHARED" != y ] ; then
+		$NFT flush ruleset
+	fi
 done
 
 if [ "$NFT_TEST_JOBS" -eq 0 ] ; then
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-12-06 13:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-05 15:43 [PATCH nft] tests: shell: flush ruleset with -U after feature probing Pablo Neira Ayuso
2023-12-05 19:29 ` Florian Westphal
2023-12-06  6:47   ` Thomas Haller
2023-12-06 12:14     ` Pablo Neira Ayuso
2023-12-06 12:18       ` Florian Westphal
2023-12-06 12:33         ` Pablo Neira Ayuso
2023-12-06 12:49           ` Pablo Neira Ayuso
2023-12-06 12:52             ` Florian Westphal
2023-12-06 13:12               ` Thomas Haller
2023-12-06 12:45       ` Thomas Haller
2023-12-06 12:57         ` Pablo Neira Ayuso
2023-12-06 12:29   ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).