Skip to contentSkip to conversation

tests: py: drop redundant JSON outputs

PATCH New Pablo Neira Ayuso 1 participant 1 message Jun 18, 2024 netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 tests: py: drop redundant JSON outputs

8abe71f862e6 ("tests: py: Warn if recorded JSON output matches the input") adds a warning on duplicated JSON outputs.

Remove them when running tests with -j:

WARNING: Recorded JSON output matches input for: icmp code { 2, 4, 54, 33, 56}

---
 tests/py/ip/icmp.t.json.output    | 24 ------------
 tests/py/ip6/icmpv6.t.json.output | 62 -------------------------------
 2 files changed, 86 deletions(-)
tests/py/ip/icmp.t.json.output +0 -24
index 52fd6016e116..d79e72b59669 100644
@@ -1,27 +1,3 @@
-# icmp code { 2, 4, 54, 33, 56}
-[
-    {
-        "match": {
-            "left": {
-                "payload": {
-                    "field": "code",
-                    "protocol": "icmp"
-                }
-            },
-            "op": "==",
-            "right": {
-                "set": [
-                    2,
-                    4,
-                    33,
-                    54,
-                    56
-                ]
-            }
-        }
-    }
-]
-
 # icmp id 1245 log
 [
     {
tests/py/ip6/icmpv6.t.json.output +0 -62

68 lines not on this page · raw message

Signature · 1 line
2.30.2