Change in osmo-gsm-tester[master]: ttcn3: Allow changing TTCN3 test from within 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
Sun Feb 9 23:09:59 UTC 2020


pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17096 )

Change subject: ttcn3: Allow changing TTCN3 test from within osmo-gsm-tester
......................................................................

ttcn3: Allow changing TTCN3 test from within osmo-gsm-tester

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

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



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 eae6063..9ad91fe 100644
--- a/ttcn3/suites/ttcn3_bts_tests/scripts/BTS_Tests.cfg.tmpl
+++ b/ttcn3/suites/ttcn3_bts_tests/scripts/BTS_Tests.cfg.tmpl
@@ -28,4 +28,4 @@
 [MAIN_CONTROLLER]
 
 [EXECUTE]
-BTS_Tests.control
+${ttcn3_test_execute}
diff --git a/ttcn3/suites/ttcn3_bts_tests/ttcn3_bts_tests.py b/ttcn3/suites/ttcn3_bts_tests/ttcn3_bts_tests.py
index 2684bf7..4839052 100755
--- a/ttcn3/suites/ttcn3_bts_tests/ttcn3_bts_tests.py
+++ b/ttcn3/suites/ttcn3_bts_tests/ttcn3_bts_tests.py
@@ -4,6 +4,8 @@
 
 from osmo_gsm_tester.testenv import *
 
+ttcn3_test_execute="BTS_Tests.control"
+
 hlr_dummy = suite.hlr()
 mgw_dummy = suite.mgw()
 stp_dummy = suite.stp()
@@ -57,7 +59,7 @@
 
 print('Creating template')
 mytemplate = Template(filename=bts_tmpl_file)
-r = mytemplate.render(btsvty_ctrl_hostname=bts.remote_addr(), pcu_available=pcu_available)
+r = mytemplate.render(btsvty_ctrl_hostname=bts.remote_addr(), pcu_available=pcu_available, ttcn3_test_execute=ttcn3_test_execute)
 with open(bts_cfg_file, 'w') as f:
     f.write(r)
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17096
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: I02bf406e310f5bbab7b2e0bca47fb120418e241c
Gerrit-Change-Number: 17096
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200209/f24f6f12/attachment.htm>


More information about the gerrit-log mailing list