Change in ...osmo-gsm-tester[master]: process: Introduce respawn_sync() method

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Tue Sep 10 12:49:29 UTC 2019


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/15464


Change subject: process: Introduce respawn_sync() method
......................................................................

process: Introduce respawn_sync() method

Change-Id: Ifd1f553d9bead78bf1659f6c778c1b70888ba433
---
M src/osmo_gsm_tester/process.py
1 file changed, 7 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/64/15464/1

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 @@
         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

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/15464
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: Ifd1f553d9bead78bf1659f6c778c1b70888ba433
Gerrit-Change-Number: 15464
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190910/5392cab4/attachment.htm>


More information about the gerrit-log mailing list