diff options
author | Nasato Goto <7310510@gmail.com> | 2018-08-21 19:16:59 +0900 |
---|---|---|
committer | Nasato Goto <7310510@gmail.com> | 2018-08-21 19:29:22 +0900 |
commit | 7e07240b292946c5fdd281fcc06d0cb8438c349a (patch) | |
tree | e64ffd4b55374990dcd18a4bbb41f2ab8f7256c2 /test | |
parent | b45e3fa5885d8c742e07e9f6f054505a3c079cb6 (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.py | 4 | ||||
-rw-r--r-- | test/lib/quagga.py | 2 |
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): |