From: Phil Sutter Date: Tue, 20 Jan 2026 21:47:02 +0000 (+0100) Subject: tests: json_echo: Drop rule handle before multi-add X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad74cbd63a9782e8285f7198a5055d7947998b7f;p=thirdparty%2Fnftables.git tests: json_echo: Drop rule handle before multi-add Now that JSON parser respects rule handles in explicit add commands, the still present rule handle causes an error since the old rule does not exist anymore. Fixes: 50b5b71ebeee3 ("parser_json: Rewrite echo support") Signed-off-by: Phil Sutter --- diff --git a/tests/json_echo/run-test.py b/tests/json_echo/run-test.py index a3085b35..7d0eca0a 100755 --- a/tests/json_echo/run-test.py +++ b/tests/json_echo/run-test.py @@ -290,6 +290,7 @@ add_quota["add"]["quota"]["name"] = "q" do_flush() print("doing multi add") +del(add_rule["add"]["rule"]["handle"]) add_multi = [ add_table, add_chain, add_set, add_rule ] out = do_command(add_multi)