Lines Matching refs:lineno
42 def print_error(reason, filename=None, lineno=None): argument
47 Colors.ENDC + ": line %d (%s)" % (lineno, reason))
50 def delete_rule(iptables, rule, filename, lineno): argument
55 ret = execute_cmd(cmd, filename, lineno)
58 print_error(reason, filename, lineno)
64 def run_test(iptables, rule, rule_save, res, filename, lineno): argument
79 ret = execute_cmd(cmd, filename, lineno)
87 print_error(reason, filename, lineno)
95 print_error(reason, filename, lineno)
96 delete_rule(iptables, rule, filename, lineno)
121 print_error(reason, filename, lineno)
122 delete_rule(iptables, rule, filename, lineno)
129 print_error(reason, filename, lineno)
130 delete_rule(iptables, rule, filename, lineno)
133 return delete_rule(iptables, rule, filename, lineno)
136 def execute_cmd(cmd, filename, lineno): argument
154 print_error(reason, filename, lineno)
187 for lineno, line in enumerate(f):
198 execute_cmd(external_cmd, filename, lineno)
227 res, filename, lineno + 1)