From 7e07240b292946c5fdd281fcc06d0cb8438c349a Mon Sep 17 00:00:00 2001 From: Nasato Goto <7310510@gmail.com> Date: Tue, 21 Aug 2018 19:16:59 +0900 Subject: 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. --- test/lib/gobgp.py | 4 ++-- test/lib/quagga.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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): -- cgit v1.2.3