summaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester/pcu.py
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-05-22 20:32:30 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-05-25 12:31:20 +0200
commitb1526b9979ae1b04819cc6130a7fb36e97c82811 (patch)
treef5e0172870336d986debe2443979248cb327d165 /src/osmo_gsm_tester/pcu.py
parent06ada458cfbd0cec5aec8ec12122af4dfd77a177 (diff)
Add option to expect bts/pcu failures and respawn its processes
Some tests may want to reproduce some scenarios in which it is expected that a BTS process is stopped, for instance if the BSC link is dropped. Provide a keepalive parameter to start() for bts and pcu objects to inform suite that failures are expected and that it should keep them alive in case that ocurrs by respawning the BTS process. Change-Id: Ia2a7539f9fad457125ac9b60a52a52999e885ba8
Diffstat (limited to 'src/osmo_gsm_tester/pcu.py')
-rw-r--r--src/osmo_gsm_tester/pcu.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo_gsm_tester/pcu.py b/src/osmo_gsm_tester/pcu.py
index 97d0b92..0260296 100644
--- a/src/osmo_gsm_tester/pcu.py
+++ b/src/osmo_gsm_tester/pcu.py
@@ -42,7 +42,7 @@ class Pcu(log.Origin, metaclass=ABCMeta):
###################
@abstractmethod
- def start(self):
+ def start(self, keepalive=False):
"""Start the PCU. Must be implemented by subclass."""
pass
@@ -54,7 +54,7 @@ class PcuDummy(Pcu):
def __init__(self, suite_run, bts, conf):
super().__init__(suite_run, bts, conf, 'PcuDummy')
- def start(self):
+ def start(self, keepalive=False):
pass
# vim: expandtab tabstop=4 shiftwidth=4