diff options
authorPablo Neira Ayuso <>2016-08-29 19:50:45 +0200
committerPablo Neira Ayuso <>2016-08-29 20:30:23 +0200
commitd089630ecbc783d7f0c6df972033694b1671c009 (patch)
parente7b1270057037c1c2524204c4c903c995cf77aab (diff)
tests: py: adapt it to new add element command semantics
Since fd33d96 ("src: create element command"), add element doesn't fail anymore if the element exists, you have to use create instead in case you want to check if the element already exists. Signed-off-by: Pablo Neira Ayuso <>
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/py/ip/sets.t b/tests/py/ip/sets.t
index 0e2b1935..ee17d998 100644
--- a/tests/py/ip/sets.t
+++ b/tests/py/ip/sets.t
@@ -13,9 +13,9 @@
!set1 type ipv4_addr;ok
?set1 1234:1234:1234:1234:1234:1234:1234:1234;fail
@@ -24,7 +24,7 @@
!set2 type ipv4_addr;ok
diff --git a/tests/py/ip6/sets.t b/tests/py/ip6/sets.t
index ff38925e..ea20834e 100644
--- a/tests/py/ip6/sets.t
+++ b/tests/py/ip6/sets.t
@@ -13,12 +13,12 @@
!set2 type ipv6_addr;ok
?set2 1234:1234::1234:1234:1234:1234:1234;ok
-?set2 1234:1234::1234:1234:1234:1234:1234;fail
+?set2 1234:1234::1234:1234:1234:1234:1234;ok
?set2 1234::1234:1234:1234;ok
?set2 1234:1234:1234:1234:1234::1234:1234 1234:1234::123;ok
?set2 1234:1234::1234:1234:1234:1234;ok
-?set2 1234:1234::1234:1234:1234:1234;fail
+?set2 1234:1234::1234:1234:1234:1234;ok
?set2 1234:1234:1234::1234;ok
ip6 saddr @set2 drop;ok