Change in osmo-ttcn3-hacks[master]: pcu: f_tc_paging_ps_from_sgsn: move init/shutdown

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 Aug 15 17:21:48 UTC 2021


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

Change subject: pcu: f_tc_paging_ps_from_sgsn: move init/shutdown
......................................................................

pcu: f_tc_paging_ps_from_sgsn: move init/shutdown

Prepare to use this shared function in a new test with additional
commands between init, the function and shutdown.

Related: SYS#4878
Change-Id: I6fd523c7f5ab496b3356cf896a8ceaf9b6e874d2
---
M pcu/PCU_Tests.ttcn
1 file changed, 17 insertions(+), 7 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn
index 804644a..f77c4c1 100644
--- a/pcu/PCU_Tests.ttcn
+++ b/pcu/PCU_Tests.ttcn
@@ -3185,9 +3185,6 @@
 	f_init_gprs_ms();
 	ms := g_ms[0]; /* We only use first MS in this test */
 
-	/* Initialize the PCU interface abstraction */
-	f_init_raw(testcasename());
-
 	f_statsd_reset();
 
 	/* Establish BSSGP connection to the PCU */
@@ -3215,20 +3212,33 @@
 		};
 		f_statsd_expect(expect);
 	}
+}
+
+testcase TC_paging_ps_from_sgsn_sign_ptmsi() runs on RAW_PCU_Test_CT {
+	/* Initialize the PCU interface abstraction */
+	f_init_raw(testcasename());
+
+	f_tc_paging_ps_from_sgsn(0, true);
 
 	f_shutdown(__BFILE__, __LINE__, final := true);
 }
 
-testcase TC_paging_ps_from_sgsn_sign_ptmsi() runs on RAW_PCU_Test_CT {
-	f_tc_paging_ps_from_sgsn(0, true);
-}
-
 testcase TC_paging_ps_from_sgsn_sign() runs on RAW_PCU_Test_CT {
+	/* Initialize the PCU interface abstraction */
+	f_init_raw(testcasename());
+
 	f_tc_paging_ps_from_sgsn(0);
+
+	f_shutdown(__BFILE__, __LINE__, final := true);
 }
 
 testcase TC_paging_ps_from_sgsn_ptp() runs on RAW_PCU_Test_CT {
+	/* Initialize the PCU interface abstraction */
+	f_init_raw(testcasename());
+
 	f_tc_paging_ps_from_sgsn(mp_gb_cfg.bvc[0].bvci);
+
+	f_shutdown(__BFILE__, __LINE__, final := true);
 }
 
 /* Verify osmo-pcu handles DL UNIT_DATA from SGSN with IMSI IE correctly. See OS#4729 */

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25159
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: I6fd523c7f5ab496b3356cf896a8ceaf9b6e874d2
Gerrit-Change-Number: 25159
Gerrit-PatchSet: 3
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210815/dc6210e6/attachment.htm>


More information about the gerrit-log mailing list