Change in ...osmo-ttcn3-hacks[master]: bts: f_init_pcu: sleep before connect

laforge gerrit-no-reply at lists.osmocom.org
Thu Aug 29 19:46:49 UTC 2019


laforge has submitted this change and it was merged. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15327 )

Change subject: bts: f_init_pcu: sleep before connect
......................................................................

bts: f_init_pcu: sleep before connect

Give the emulated BSC side some time to send the various SI via RSL.
This workaround makes OsmoBTS send the correct CellID and other
information instead of empty values to the PCU socket. The next commit
tests these values.

Related: OS#4179
Change-Id: I547f2b8e0796b6976506c28b1b493b1f5bce28f8
---
M bts/BTS_Tests.ttcn
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index d3fb958..7f0b205 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -324,6 +324,9 @@
 		pcu_conn_id := -1;
 		return;
 	}
+
+	f_sleep(0.5); /* workaround for OS#4179 */
+
 	pcu_conn_id := f_pcuif_connect(pt, mp_pcu_socket);
 
 	T.start;

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15327
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I547f2b8e0796b6976506c28b1b493b1f5bce28f8
Gerrit-Change-Number: 15327
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at gnumonks.org>
Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190829/a2628162/attachment.html>


More information about the gerrit-log mailing list