[PATCH] osmo-gsm-tester[master]: pcu_osmo: workaround osmo-pcu failing if bts not ready

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/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Thu Nov 23 16:39:43 UTC 2017


Review at  https://gerrit.osmocom.org/5005

pcu_osmo: workaround osmo-pcu failing if bts not ready

Change-Id: I647f287a7e652df74021093fa5edb330a333c7c3
---
M src/osmo_gsm_tester/pcu_osmo.py
1 file changed, 5 insertions(+), 2 deletions(-)


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

diff --git a/src/osmo_gsm_tester/pcu_osmo.py b/src/osmo_gsm_tester/pcu_osmo.py
index 62bb7f0..81f9b5f 100644
--- a/src/osmo_gsm_tester/pcu_osmo.py
+++ b/src/osmo_gsm_tester/pcu_osmo.py
@@ -39,8 +39,11 @@
         self.env = {}
 
     def start(self):
-        # TODO: self.log('Waiting for osmo-bts to start up...')
-        # event_loop.wait(self, self.trx.trx_ready)
+        self.log('waiting for bts to be ready...')
+        # TODO: othwerwise osmo-pcu ends after connecting to socket with "pcu_l1_if.cpp:416 BTS not available"
+        # event_loop.wait(self, self.bts.is_ready)
+        event_loop.sleep(self, seconds=20)
+
         self.run_dir = util.Dir(self.suite_run.get_test_run_dir().new_dir(self.name()))
         self.configure()
 

-- 
To view, visit https://gerrit.osmocom.org/5005
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I647f287a7e652df74021093fa5edb330a333c7c3
Gerrit-PatchSet: 1
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>



More information about the gerrit-log mailing list