From: Pablo Neira Ayuso Date: Sat, 3 Nov 2018 13:40:26 +0000 (+0100) Subject: iptables-tests: do not append xtables-multi to external commands X-Git-Tag: v1.8.2~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b81c8da23720b7e8a55869d677c3cdcbb36b6ddf;p=thirdparty%2Fiptables.git iptables-tests: do not append xtables-multi to external commands Lines starting by @ can be used to invoke an external command of any kind. Do not add xtables-multi here since we may want to execute a non-iptables command. Fixes: 9ff99156b63e ("iptables-test: fix netns test") Signed-off-by: Pablo Neira Ayuso --- diff --git a/iptables-test.py b/iptables-test.py index c199d509..7858f187 100755 --- a/iptables-test.py +++ b/iptables-test.py @@ -223,7 +223,7 @@ def run_test_file(filename, netns): if line[0] == "@": external_cmd = line.rstrip()[1:] if netns: - external_cmd = "ip netns exec ____iptables-container-test " + EXECUTEABLE + " " + external_cmd + external_cmd = "ip netns exec ____iptables-container-test " + external_cmd execute_cmd(external_cmd, filename, lineno) continue