Blob Blame History Raw
From 0f3ae3ae56b7a27ec3ff85646a87b6488b1f05d6 Mon Sep 17 00:00:00 2001
From: Eric Garver <eric@garver.life>
Date: Mon, 17 Jun 2019 11:01:27 -0400
Subject: [PATCH 06/20] fix: test/features/rfc3964_ipv4: use return code not
 output for negative test

The output varies between -nft and -legacy iptables variants.

Fixes: e527818500be ("fix: tests: always list rules using macros")
(cherry picked from commit 7149ff26c88a86c9a485f8e59d3ceb3eb4a292d4)
---
 src/tests/features/rfc3964_ipv4.at | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/tests/features/rfc3964_ipv4.at b/src/tests/features/rfc3964_ipv4.at
index baff411793b2..54f5f756270b 100644
--- a/src/tests/features/rfc3964_ipv4.at
+++ b/src/tests/features/rfc3964_ipv4.at
@@ -93,9 +93,7 @@ NFT_LIST_RULES([inet], [filter_OUTPUT], 0, [dnl
     }
 ])
 
-IP6TABLES_LIST_RULES([filter], [RFC3964_IPv4], 0, [ignore], [dnl
-iptables: No chain/target/match by that name.
-])
+IP6TABLES_LIST_RULES([filter], [RFC3964_IPv4], 1, [ignore], [ignore])
 IP6TABLES_LIST_RULES([filter], [FORWARD], 0, [dnl
     ACCEPT all ::/0 ::/0 ctstate RELATED,ESTABLISHED,DNAT
     ACCEPT all ::/0 ::/0
-- 
2.20.1