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
Sun Oct 11 19:05:33 UTC 2020


laforge has uploaded this change for review. ( 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(-)



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

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: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201011/04f7de54/attachment.htm>


More information about the gerrit-log mailing list