summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorNasato Goto <7310510@gmail.com>2018-08-21 19:16:59 +0900
committerNasato Goto <7310510@gmail.com>2018-08-21 19:29:22 +0900
commit7e07240b292946c5fdd281fcc06d0cb8438c349a (patch)
treee64ffd4b55374990dcd18a4bbb41f2ab8f7256c2 /test
parentb45e3fa5885d8c742e07e9f6f054505a3c079cb6 (diff)
test/lib: Fix pkill command syntax for BusyBox
Fix syntax of pkill in order to make use of it for BusyBox Linux based container available. This change is compatible with use of pkill for usual Linux.
Diffstat (limited to 'test')
-rw-r--r--test/lib/gobgp.py4
-rw-r--r--test/lib/quagga.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/lib/gobgp.py b/test/lib/gobgp.py
index bff284d1..9dbb4b90 100644
--- a/test/lib/gobgp.py
+++ b/test/lib/gobgp.py
@@ -572,8 +572,8 @@ class GoBGPContainer(BGPContainer):
def reload_config(self):
for daemon in self._get_enabled_quagga_daemons():
- self.local('pkill {0} -SIGHUP'.format(daemon), capture=True)
- self.local('pkill gobgpd -SIGHUP', capture=True)
+ self.local('pkill -SIGHUP {0}'.format(daemon), capture=True)
+ self.local('pkill -SIGHUP gobgpd', capture=True)
self._wait_for_boot()
def add_route(self, route, rf='ipv4', attribute=None, aspath=None,
diff --git a/test/lib/quagga.py b/test/lib/quagga.py
index f0981a23..4f24c784 100644
--- a/test/lib/quagga.py
+++ b/test/lib/quagga.py
@@ -273,7 +273,7 @@ class QuaggaBGPContainer(BGPContainer):
def reload_config(self):
for daemon in self._get_enabled_daemons():
- self.local('pkill {0} -SIGHUP'.format(daemon), capture=True)
+ self.local('pkill -SIGHUP {0}'.format(daemon), capture=True)
self._wait_for_boot()
def _vtysh_add_route_map(self, path):