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 89220f29fe552..ac4f37c614452 100755 --- a/iptables-test.py +++ b/iptables-test.py @@ -323,6 +323,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