Change in osmo-ttcn3-hacks[master]: PCU_Tests: randomize MA length in f_TC_pcuif_fh_params_gen()

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

fixeria gerrit-no-reply at lists.osmocom.org
Tue Sep 8 19:04:21 UTC 2020


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

Change subject: PCU_Tests: randomize MA length in f_TC_pcuif_fh_params_gen()
......................................................................

PCU_Tests: randomize MA length in f_TC_pcuif_fh_params_gen()

This way we also test different variations of MA length.

Change-Id: Id886ed72c8a03fe2b27bc7add74eb0f58a2fe6ff
Related: SYS#4868, OS#4547
---
M pcu/PCU_Tests.ttcn
1 file changed, 4 insertions(+), 1 deletion(-)

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



diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn
index a4596bf..df2964c 100644
--- a/pcu/PCU_Tests.ttcn
+++ b/pcu/PCU_Tests.ttcn
@@ -2162,8 +2162,11 @@
 }
 
 /* Randomly generate a set of hopping parameters for one timeslot */
-private function f_TC_pcuif_fh_params_gen(integer ma_len)
+private function f_TC_pcuif_fh_params_gen(integer max_ma_len)
 return template (value) PCUIF_InfoTrxTs {
+	/* Pick a random MA length in range 2 .. max_ma_len */
+	var integer ma_len := 2 + f_rnd_int(max_ma_len - 2);
+
 	return ts_PCUIF_InfoTrxTsH1(tsc := f_rnd_int(7),
 				    hsn := f_rnd_int(63),
 				    maio := f_rnd_int(63),

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20010
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: Id886ed72c8a03fe2b27bc7add74eb0f58a2fe6ff
Gerrit-Change-Number: 20010
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <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/20200908/8c9a192f/attachment.htm>


More information about the gerrit-log mailing list