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
Mon Sep 7 04:46:10 UTC 2020


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



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

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: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200907/0075c571/attachment.htm>


More information about the gerrit-log mailing list