Unlike iptables, ebtables includes the default rule target in output. Instead of adding it to every rule in ebtables tests, add special casing to the testscript checking if the expected rule output contains a target already and adding the default one if not. Signed-off-by: Phil Sutter <phil@xxxxxx> --- iptables-test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iptables-test.py b/iptables-test.py index d9b3ee4e29464..dc031c2b60450 100755 --- a/iptables-test.py +++ b/iptables-test.py @@ -287,6 +287,9 @@ STDERR_IS_TTY = sys.stderr.isatty() else: rule_save = chain + " " + item[1] + if iptables == EBTABLES and rule_save.find('-j') < 0: + rule_save += " -j CONTINUE" + res = item[2].rstrip() if res != "OK": rule = chain + " -t " + table + " " + item[0] -- 2.34.1