summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorNasato Goto <7310510@gmail.com>2018-08-21 18:34:07 +0900
committerNasato Goto <7310510@gmail.com>2018-08-21 19:01:25 +0900
commitb45e3fa5885d8c742e07e9f6f054505a3c079cb6 (patch)
treec95e2a6b7e8315f86452f71f937152c269b6e92b /test
parentd6a5e9f1572aff35d8ab47c896f71c06871c2b15 (diff)
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.
Diffstat (limited to 'test')
-rw-r--r--test/lib/bird.py2
-rw-r--r--test/lib/gobgp.py2
2 files changed, 2 insertions, 2 deletions
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)