path: root/src
diff options
authorAlejandro Leal Conejos <alejandro.leal@srs.io>2021-06-15 17:57:55 +0200
committerAlejandro Leal Conejos <alejandro.leal@srs.io>2021-06-15 17:58:44 +0200
commitdcc0b5577c0c90f3e7f9af0b886dd07cbaaf1961 (patch)
tree51474062c56752606055c6c0b1263fd708e120d1 /src
parente3f6a3b527e10db7237d6b3750d73763e7dd984f (diff)
util: fix the functions "create_netns" and "setcap_netsys_admin".
This commit fixes 2 functions from util.py: - setcap_netsys_admin: removed "self" from the arguments. - create_netns: pass "run_dir" to Process and convert the arguments to a list as the other methods in the file. Change-Id: Ida4c6d6500be92b8d1f96e4e7a870e63bd329be9
Diffstat (limited to 'src')
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo_gsm_tester/core/util.py b/src/osmo_gsm_tester/core/util.py
index 691b489..5ca6ad9 100644
--- a/src/osmo_gsm_tester/core/util.py
+++ b/src/osmo_gsm_tester/core/util.py
@@ -102,7 +102,7 @@ def setcap_net_admin(binary, run_dir):
proc = Process(SETCAP_NET_ADMIN_BIN, run_dir, ['sudo', SETCAP_NET_ADMIN_BIN, binary])
-def setcap_netsys_admin(self, binary, run_dir):
+def setcap_netsys_admin(binary, run_dir):
This functionality requires specific setup on the host running
osmo-gsm-tester. See osmo-gsm-tester manual for more information.
@@ -118,7 +118,7 @@ def create_netns(netns, run_dir):
from .process import Process
NETNS_SETUP_BIN = 'osmo-gsm-tester_netns_setup.sh'
- proc = Process('create_netns', ('sudo', NETNS_SETUP_BIN, netns))
+ proc = Process('create_netns',run_dir, ['sudo', NETNS_SETUP_BIN, netns])
def move_iface_to_netns(ifname, netns, run_dir):