From d85d0933519c9d0094d4468a7211333546bd8d47 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 5 Dec 2023 16:39:27 +0100 Subject: tests: shell: flush ruleset with -U after feature probing feature probe script leaves a ruleset in place, flush it once probing is complete. Signed-off-by: Pablo Neira Ayuso --- tests/shell/run-tests.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/shell/run-tests.sh') diff --git a/tests/shell/run-tests.sh b/tests/shell/run-tests.sh index e54f8bf3..86c83126 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 -- cgit v1.2.3