summaryrefslogtreecommitdiffstats
path: root/iptables-test.py
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-11-03 14:40:26 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-11-03 22:11:21 +0100
commitb81c8da23720b7e8a55869d677c3cdcbb36b6ddf (patch)
tree254bf3656893ad303ab9d631162a54c9d865d829 /iptables-test.py
parentedf2b7c0863133b38ba48dbcaa18a16bdba1a588 (diff)
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 <pablo@netfilter.org>
Diffstat (limited to 'iptables-test.py')
-rwxr-xr-xiptables-test.py2
1 files changed, 1 insertions, 1 deletions
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