Change in osmo-ttcn3-hacks[master]: BTS_Tests.ttcn: add 'lazy' mode for as_meas_res()

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

Harald Welte gerrit-no-reply at lists.osmocom.org
Fri Oct 5 11:14:53 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/11226 )

Change subject: BTS_Tests.ttcn: add 'lazy' mode for as_meas_res()
......................................................................

BTS_Tests.ttcn: add 'lazy' mode for as_meas_res()

This mode would be useful for test cases, which expect to receive
the RSL_MEAS_RES messages, but don't care about their correctness.

Change-Id: I39118d6e64c767fad2c9618ec0ef4532dc60e715
---
M bts/BTS_Tests.ttcn
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Pau Espin Pedrol: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index fe59fd3..9c749b4 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -1296,8 +1296,9 @@
 }
 
 /* verify we regularly receive measurement reports with incrementing numbers */
-altstep as_meas_res() runs on ConnHdlr {
+altstep as_meas_res(boolean verify_meas := true) runs on ConnHdlr {
 	var RSL_Message rsl;
+	[not verify_meas] RSL.receive(tr_RSL_MEAS_RES(?)) { repeat; }
 	[] RSL.receive(f_build_meas_res_tmpl()) -> value rsl {
 		/* increment counter of next to-be-expected meas rep */
 		g_next_meas_res_nr := (g_next_meas_res_nr + 1) mod 256;

-- 
To view, visit https://gerrit.osmocom.org/11226
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I39118d6e64c767fad2c9618ec0ef4532dc60e715
Gerrit-Change-Number: 11226
Gerrit-PatchSet: 2
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181005/387c3309/attachment.htm>


More information about the gerrit-log mailing list