Change in ...osmo-ttcn3-hacks[master]: bscnat: Move generic code to wait for test into its own function

pespin gerrit-no-reply at lists.osmocom.org
Mon Jun 10 19:03:42 UTC 2019


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/14410


Change subject: bscnat: Move generic code to wait for test into its own function
......................................................................

bscnat: Move generic code to wait for test into its own function

Change-Id: Ia95ec02d7ca631e037abfbcfc7881b57e37aef5b
---
M bsc-nat/BSCNAT_Tests.ttcn
1 file changed, 10 insertions(+), 5 deletions(-)



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

diff --git a/bsc-nat/BSCNAT_Tests.ttcn b/bsc-nat/BSCNAT_Tests.ttcn
index 2fab4a3..6b0c757 100644
--- a/bsc-nat/BSCNAT_Tests.ttcn
+++ b/bsc-nat/BSCNAT_Tests.ttcn
@@ -163,12 +163,8 @@
 
 }
 
-function f_TC_recv_dump(boolean use_osmux := false) runs on test_CT {
+function f_wait_finish(timer T) runs on test_CT {
 	var integer i;
-	timer T := 30.0;
-
-	f_init(use_osmux);
-
 	alt {
 		/* wait for BSC to stop. The idea is that the BSC components terminate first */
 		[] bsc[0].BSC.done { }
@@ -182,6 +178,15 @@
 	}
 }
 
+
+function f_TC_recv_dump(boolean use_osmux := false) runs on test_CT {
+	timer T := 30.0;
+
+	f_init(use_osmux);
+
+	f_wait_finish(T);
+}
+
 testcase TC_recv_dump() runs on test_CT {
 	f_TC_recv_dump();
 }

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/14410
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: Ia95ec02d7ca631e037abfbcfc7881b57e37aef5b
Gerrit-Change-Number: 14410
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190610/05ee5227/attachment.html>


More information about the gerrit-log mailing list