<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17115">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ttcn3: Allow passing ttcn3 extra module params from osmo-gsm-tester<br><br>Change-Id: Iaa2a5647801b4f152f72bf4b40ac79f18608df87<br>---<br>M ttcn3/suites/ttcn3_bts_tests/lib/testlib.py<br>M ttcn3/suites/ttcn3_bts_tests/scripts/BTS_Tests.cfg.tmpl<br>2 files changed, 3 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/15/17115/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/ttcn3/suites/ttcn3_bts_tests/lib/testlib.py b/ttcn3/suites/ttcn3_bts_tests/lib/testlib.py</span><br><span>index 9c673cd..7e7e874 100644</span><br><span>--- a/ttcn3/suites/ttcn3_bts_tests/lib/testlib.py</span><br><span>+++ b/ttcn3/suites/ttcn3_bts_tests/lib/testlib.py</span><br><span>@@ -4,7 +4,7 @@</span><br><span> </span><br><span> from osmo_gsm_tester.testenv import *</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-def run_ttcn3(suite, test_obj, testdir, bts, osmocon, nat_rsl_ip, ttcn3_test_execute):</span><br><span style="color: hsl(120, 100%, 40%);">+def run_ttcn3(suite, test_obj, testdir, bts, osmocon, nat_rsl_ip, ttcn3_test_execute, ttcn3_test_extra_module_params=""):</span><br><span>     own_dir = testdir</span><br><span>     script_file = os.path.join(testdir, 'scripts', 'run_ttcn3_docker.sh')</span><br><span>     bts_tmpl_file = os.path.join(testdir, 'scripts', 'BTS_Tests.cfg.tmpl')</span><br><span>@@ -21,7 +21,7 @@</span><br><span> </span><br><span>     print('Creating template')</span><br><span>     mytemplate = Template(filename=bts_tmpl_file)</span><br><span style="color: hsl(0, 100%, 40%);">-    r = mytemplate.render(btsvty_ctrl_hostname=bts.remote_addr(), pcu_available=pcu_available, ttcn3_test_execute=ttcn3_test_execute)</span><br><span style="color: hsl(120, 100%, 40%);">+    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)</span><br><span>     with open(bts_cfg_file, 'w') as f:</span><br><span>         f.write(r)</span><br><span> </span><br><span>diff --git a/ttcn3/suites/ttcn3_bts_tests/scripts/BTS_Tests.cfg.tmpl b/ttcn3/suites/ttcn3_bts_tests/scripts/BTS_Tests.cfg.tmpl</span><br><span>index 9ad91fe..510234e 100644</span><br><span>--- a/ttcn3/suites/ttcn3_bts_tests/scripts/BTS_Tests.cfg.tmpl</span><br><span>+++ b/ttcn3/suites/ttcn3_bts_tests/scripts/BTS_Tests.cfg.tmpl</span><br><span>@@ -24,6 +24,7 @@</span><br><span> BTS_Tests.mp_trx0_arfcn := 868</span><br><span> BTS_Tests.mp_ipa_up_timeout := 30.0</span><br><span> BTS_Tests.mp_ipa_up_delay := 3.0</span><br><span style="color: hsl(120, 100%, 40%);">+${ttcn3_test_extra_module_params}</span><br><span> </span><br><span> [MAIN_CONTROLLER]</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17115">change 17115</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17115"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-gsm-tester </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Iaa2a5647801b4f152f72bf4b40ac79f18608df87 </div>
<div style="display:none"> Gerrit-Change-Number: 17115 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>