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

Change-Id: I02bf406e310f5bbab7b2e0bca47fb120418e241c
This commit is contained in:
Pau Espin 2020-02-06 15:59:48 +01:00
parent 2eafb03195
commit ceb7ea6176
2 changed files with 4 additions and 2 deletions

View File

@ -28,4 +28,4 @@ BTS_Tests.mp_ipa_up_delay := 3.0
[MAIN_CONTROLLER]
[EXECUTE]
BTS_Tests.control
${ttcn3_test_execute}

View File

@ -4,6 +4,8 @@ from mako.template import Template
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 @@ docker_cmd = (script_file, str(script_run_dir), junit_ttcn3_dst_file, nat_rsl_ip
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)