Message ID | 20180413145235.1204-9-phil@nwl.cc |
---|---|
State | Accepted |
Delegated to: | Pablo Neira |
Headers | show |
Series | Fallout from upcoming JSON support | expand |
diff --git a/tests/py/nft-test.py b/tests/py/nft-test.py index d5cb25b389de5..d4b22817d7665 100755 --- a/tests/py/nft-test.py +++ b/tests/py/nft-test.py @@ -737,8 +737,8 @@ def rule_add(rule, filename, lineno, force_all_family_option, filename_path): if set_check_element(teoric_exit.rstrip(), rule_output.rstrip()) != 0: warning += 1 print_differences_warning(filename, lineno, - rule[0], rule_output, - cmd) + teoric_exit.rstrip(), + rule_output, cmd) if not force_all_family_option: return [ret, warning, error, unit_tests] else:
If a rule contained a set, it would always print the tested rule as differing from the output instead of any given output (if defined). Signed-off-by: Phil Sutter <phil@nwl.cc> --- tests/py/nft-test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)