From ae37dbf13bc56bf533b504edc9f5464828f6218d Mon Sep 17 00:00:00 2001 From: Packit Service Date: Jan 28 2021 16:14:55 +0000 Subject: Apply patch 0014-iptables-test.py-Fix-host-mode.patch patch_name: 0014-iptables-test.py-Fix-host-mode.patch present_in_specfile: true location_in_specfile: 14 --- diff --git a/iptables-test.py b/iptables-test.py index fdb4e6a..e986d7a 100755 --- a/iptables-test.py +++ b/iptables-test.py @@ -119,8 +119,7 @@ def run_test(iptables, rule, rule_save, res, filename, lineno, netns): elif splitted[0] == EBTABLES: command = EBTABLES_SAVE - path = os.path.abspath(os.path.curdir) + "/iptables/" + EXECUTEABLE - command = path + " " + command + command = EXECUTEABLE + " " + command if netns: command = "ip netns exec ____iptables-container-test " + command @@ -165,7 +164,7 @@ def execute_cmd(cmd, filename, lineno): ''' global log_file if cmd.startswith('iptables ') or cmd.startswith('ip6tables ') or cmd.startswith('ebtables ') or cmd.startswith('arptables '): - cmd = os.path.abspath(os.path.curdir) + "/iptables/" + EXECUTEABLE + " " + cmd + cmd = EXECUTEABLE + " " + cmd print("command: {}".format(cmd), file=log_file) ret = subprocess.call(cmd, shell=True, universal_newlines=True,