diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-12-05 16:39:27 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-12-06 16:21:01 +0100 |
commit | d85d0933519c9d0094d4468a7211333546bd8d47 (patch) | |
tree | 6869edfe3a845bd7e307979a84f0860b49892919 /tests/shell/run-tests.sh | |
parent | ee73e9dcd46dc5a1fe3be7caa8b9323819e394b8 (diff) |
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 <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/run-tests.sh')
-rwxr-xr-x | tests/shell/run-tests.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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 |