Change in osmo-gsm-tester[master]: ttcn3: Allow passing ttcn3 extra module params from osmo-gsm-tester

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

pespin gerrit-no-reply at lists.osmocom.org
Mon Feb 10 08:57:16 UTC 2020


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17115 )


Change subject: ttcn3: Allow passing ttcn3 extra module params from osmo-gsm-tester
......................................................................

ttcn3: Allow passing ttcn3 extra module params from osmo-gsm-tester

Change-Id: Iaa2a5647801b4f152f72bf4b40ac79f18608df87
---
M ttcn3/suites/ttcn3_bts_tests/lib/testlib.py
M ttcn3/suites/ttcn3_bts_tests/scripts/BTS_Tests.cfg.tmpl
2 files changed, 3 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/15/17115/1

diff --git a/ttcn3/suites/ttcn3_bts_tests/lib/testlib.py b/ttcn3/suites/ttcn3_bts_tests/lib/testlib.py
index 9c673cd..7e7e874 100644
--- a/ttcn3/suites/ttcn3_bts_tests/lib/testlib.py
+++ b/ttcn3/suites/ttcn3_bts_tests/lib/testlib.py
@@ -4,7 +4,7 @@
 
 from osmo_gsm_tester.testenv import *
 
-def run_ttcn3(suite, test_obj, testdir, bts, osmocon, nat_rsl_ip, ttcn3_test_execute):
+def run_ttcn3(suite, test_obj, testdir, bts, osmocon, nat_rsl_ip, ttcn3_test_execute, ttcn3_test_extra_module_params=""):
     own_dir = testdir
     script_file = os.path.join(testdir, 'scripts', 'run_ttcn3_docker.sh')
     bts_tmpl_file = os.path.join(testdir, 'scripts', 'BTS_Tests.cfg.tmpl')
@@ -21,7 +21,7 @@
 
     print('Creating template')
     mytemplate = Template(filename=bts_tmpl_file)
-    r = mytemplate.render(btsvty_ctrl_hostname=bts.remote_addr(), pcu_available=pcu_available, ttcn3_test_execute=ttcn3_test_execute)
+    r = mytemplate.render(btsvty_ctrl_hostname=bts.remote_addr(), pcu_available=pcu_available, ttcn3_test_execute=ttcn3_test_execute, ttcn3_test_extra_module_params=ttcn3_test_extra_module_params)
     with open(bts_cfg_file, 'w') as f:
         f.write(r)
 
diff --git a/ttcn3/suites/ttcn3_bts_tests/scripts/BTS_Tests.cfg.tmpl b/ttcn3/suites/ttcn3_bts_tests/scripts/BTS_Tests.cfg.tmpl
index 9ad91fe..510234e 100644
--- a/ttcn3/suites/ttcn3_bts_tests/scripts/BTS_Tests.cfg.tmpl
+++ b/ttcn3/suites/ttcn3_bts_tests/scripts/BTS_Tests.cfg.tmpl
@@ -24,6 +24,7 @@
 BTS_Tests.mp_trx0_arfcn := 868
 BTS_Tests.mp_ipa_up_timeout := 30.0
 BTS_Tests.mp_ipa_up_delay := 3.0
+${ttcn3_test_extra_module_params}
 
 [MAIN_CONTROLLER]
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17115
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: Iaa2a5647801b4f152f72bf4b40ac79f18608df87
Gerrit-Change-Number: 17115
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/20200210/e9e9ab15/attachment.htm>


More information about the gerrit-log mailing list