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

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

laforge gerrit-no-reply at lists.osmocom.org
Mon Oct 12 13:12:26 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20544 )

Change subject: bts: Make TC_pcu_socket_verify_info_ind pass
......................................................................

bts: Make TC_pcu_socket_verify_info_ind pass

f_init / f_init_pcu simply save the first PCU_INFO_IND
in g_pcu_last_info.  That first one might still be wrong as
the PCU might connect to the BTS before the BTS is configured
accordingly.

Let's wait for 2 seconds and actually use the last (most recent)
PCU_INFO_IND for the test.

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

Approvals:
  Vadim Yanitskiy: Looks good to me, but someone else must approve
  pespin: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 221c33e..57de013 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -5386,6 +5386,15 @@
 
 	f_init();
 
+	/* actually give the BTS some time to fully come up and to send a PCU INFO IND with the correct
+	 * information */
+	timer T := 2.0;
+	T.start;
+	alt {
+	[] as_pcu_info_ind(PCU, g_pcu_conn_id, g_pcu_last_info) { repeat; }
+	[] T.timeout {}
+	}
+
 	/* 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/+/20544
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: I45717605fde66bf870bcb6e2560f0fc753d05d95
Gerrit-Change-Number: 20544
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Vadim Yanitskiy <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
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/20201012/fb6583f8/attachment.htm>


More information about the gerrit-log mailing list