From b45e3fa5885d8c742e07e9f6f054505a3c079cb6 Mon Sep 17 00:00:00 2001 From: Nasato Goto <7310510@gmail.com> Date: Tue, 21 Aug 2018 18:34:07 +0900 Subject: test/lib: Change shell for init script Change shell of start.sh from /bin/bash to /bin/sh in order to make BusyBox Linux based container available for scenario test. --- test/lib/bird.py | 2 +- test/lib/gobgp.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/lib/bird.py b/test/lib/bird.py index 1207e335..9f210bcf 100644 --- a/test/lib/bird.py +++ b/test/lib/bird.py @@ -41,7 +41,7 @@ class BirdContainer(BGPContainer): def _start_bird(self): c = CmdBuffer() - c << '#!/bin/bash' + c << '#!/bin/sh' c << 'bird' cmd = 'echo "{0:s}" > {1}/start.sh'.format(c, self.config_dir) local(cmd) diff --git a/test/lib/gobgp.py b/test/lib/gobgp.py index 72a9bc2d..bff284d1 100644 --- a/test/lib/gobgp.py +++ b/test/lib/gobgp.py @@ -108,7 +108,7 @@ class GoBGPContainer(BGPContainer): def _start_gobgp(self, graceful_restart=False): c = CmdBuffer() - c << '#!/bin/bash' + c << '#!/bin/sh' c << '/go/bin/gobgpd -f {0}/gobgpd.conf -l {1} -p {2} -t {3} > ' \ '{0}/gobgpd.log 2>&1'.format(self.SHARED_VOLUME, self.log_level, '-r' if graceful_restart else '', self.config_format) -- cgit v1.2.3