]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
iptables-tests: do not append xtables-multi to external commands
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 3 Nov 2018 13:40:26 +0000 (14:40 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 3 Nov 2018 21:11:21 +0000 (22:11 +0100)
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 <pablo@netfilter.org>
iptables-test.py

index c199d509ef8f8a5fba4eb3399c9a9c6fa0417017..7858f1879ef9f361002d99206184a62cae785c89 100755 (executable)
@@ -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