summaryrefslogtreecommitdiffstats
path: root/tests/regression/nft-test.py
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2015-07-15 15:24:18 +0200
committerFlorian Westphal <fw@strlen.de>2015-07-15 15:28:17 +0200
commit3b7a61c2980493087d447cf2379003655f0eebe9 (patch)
treebfcd76da15769af1116349ca4d6147345167f6f9 /tests/regression/nft-test.py
parentb2ad9e5273248f76aacc0485e3c8f3310c83857a (diff)
tests: avoid more warnings
... 2001:838:35f:1::-2001:838:35f:2:: :80-100' mismatches ... 2001:838:35f:1::-2001:838:35f:2:::80-100' nft accepts both, so just alter test to not complain. Also, fix test script to display the expected output rather than the input. Otherwise, a rule like some_input;ok;expected_output may display nonsensical message like warning: some_input mismatches some_input This also fixes the icmpv6 test accordingly, nft displays ranges correctly. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/regression/nft-test.py')
-rwxr-xr-xtests/regression/nft-test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/regression/nft-test.py b/tests/regression/nft-test.py
index 7823f44c..153f5e8b 100755
--- a/tests/regression/nft-test.py
+++ b/tests/regression/nft-test.py
@@ -509,7 +509,7 @@ def rule_add(rule, table_list, chain_list, filename, lineno,
warning += 1
print_differences_warning(filename, lineno,
- rule[0], rule_output,
+ teoric_exit.rstrip(), rule_output,
cmd)
if not force_all_family_option: