Change in osmo-ttcn3-hacks[master]: bts: fix TC_pcu_socket_verify_info_ind

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

lynxis lazus gerrit-no-reply at lists.osmocom.org
Thu Jun 18 03:45:59 UTC 2020


lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18893 )


Change subject: bts: fix TC_pcu_socket_verify_info_ind
......................................................................

bts: fix TC_pcu_socket_verify_info_ind

The verify info ind is failing because a race condition while
the TC is connecting to the BTS.

Change-Id: I46b58e8e74d75cd5321f3cc9cabcc795ae42f88d
---
M bts/BTS_Tests.ttcn
1 file changed, 15 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/93/18893/1

diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index f98419d..1574fed 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -5160,6 +5160,21 @@
 
 	f_init();
 
+	/* We do a disconnect + reconnect to ensure si3 has been received by the bts.
+	 * We can not do sleep() + recv and expect a second info_ind will be received, because it could be received
+	 * by bts before f_init() connects to the pcu.
+	 */
+	f_pcuif_close(PCU, g_pcu_conn_id);
+	g_pcu_conn_id := -1;
+
+	f_sleep(1.0);
+
+	/* re-connect */
+	PCU.clear;
+	f_init_pcu(PCU, testcasename(), g_pcu_conn_id, g_pcu_last_info);
+
+	f_sleep(2.0);
+
 	/* Verify cell_id */
 	var uint16_t cell_id_si3 := si3.payload.si3.cell_id;
 	var uint16_t cell_id_pcu := g_pcu_last_info.u.info_ind.cell_id;

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18893
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: I46b58e8e74d75cd5321f3cc9cabcc795ae42f88d
Gerrit-Change-Number: 18893
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200618/37fdaa97/attachment.htm>


More information about the gerrit-log mailing list