summaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester/process.py
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-09-10 13:44:39 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-09-10 13:44:39 +0200
commitdd7bb2ca2d796102d620180554fcccd8a4452932 (patch)
tree6177496491cc7b25dc3a1b01c79c2d9e33d8565a /src/osmo_gsm_tester/process.py
parent922ce5ad31d978bd1741a50ffeaab86ea2611a54 (diff)
process: Introduce respawn_sync() method
Diffstat (limited to 'src/osmo_gsm_tester/process.py')
-rw-r--r--src/osmo_gsm_tester/process.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/osmo_gsm_tester/process.py b/src/osmo_gsm_tester/process.py
index cd125d5..b73673f 100644
--- a/src/osmo_gsm_tester/process.py
+++ b/src/osmo_gsm_tester/process.py
@@ -207,6 +207,13 @@ class Process(log.Origin):
self.killed = None
return self.launch()
+ def respawn_sync(self, raise_nonsuccess=True):
+ self.dbg('respawn_sync')
+ assert not self.is_running()
+ self.result = None
+ self.killed = None
+ return self.launch_sync(raise_nonsuccess)
+
def _poll_termination(self, time_to_wait_for_term=5):
wait_step = 0.001
waited_time = 0