summaryrefslogtreecommitdiffstats
path: root/tests/regression/nft-test.py
diff options
context:
space:
mode:
authorAna Rey <anarey@gmail.com>2014-10-08 14:52:10 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-10-09 18:54:50 +0200
commitd4b52a05834f67dec416cb49e5fec265e39b0bea (patch)
treebd5fbf5bff5fce496c72727cc19e83b68ce6095d /tests/regression/nft-test.py
parent3501c0c14ec97b91ddd7fb7026837ad8f7823386 (diff)
tests: regression: Delete an unnecessary whitespace in an output messages
If the script is run with the -e option, the output messages show an unnecessary white-space. This path fixes this mistake. sudo ./nft-test.py -e [...] "line 34: nft add rule -nnn arp test-arp input arp plen != {33-55} " [...] ^^^^ Signed-off-by: Ana Rey <anarey@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
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 d4929f08..00c33f3e 100755
--- a/tests/regression/nft-test.py
+++ b/tests/regression/nft-test.py
@@ -694,7 +694,7 @@ def run_test_file(filename, force_all_family_option, specific_file):
if line[1:].find("*") != -1:
continue
if need_fix_option:
- rule[0] = rule[0].rstrip()[1:]
+ rule[0] = rule[0].rstrip()[1:].strip()
result = rule_add(rule, table_list, chain_list, filename,
lineno, force_all_family_option)
tests += 1