Hi,

On Thu, Oct 18, 2018 at 08:33:07PM +0200, Pablo Neira Ayuso wrote:
[...]
> @@ -108,8 +111,15 @@ def run_test(iptables, rule, rule_save, res, filename, 
> lineno):
>              command = IPTABLES_SAVE
>          elif splitted[0] == IP6TABLES:
>              command = IP6TABLES_SAVE
> +
> +    if netns:
> +            path = "/sbin/ip"
> +            command = "netns exec ____vm-iptable-test " + EXECUTEABLE + " " 
> + command
> +    else:
> +            path = os.path.abspath(os.path.curdir) + "/iptables/" + 
> EXECUTEABLE
> +

In netns case, doesn't this lead to calling xtables-*-multi from $PATH
instead of the local one we want to test?

Cheers, Phil

Reply via email to