<p>srs_andre has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24051">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">4g: add overlay template path for all suites<br><br>this allows, without changing the test case, to use a custom<br>template, which is useful for development. By default, nothing changes<br>and the OGT template is used<br><br>Change-Id: Ifc43ac41b16813116f2559da5223a6fecc186125<br>---<br>M sysmocom/suites/4g/iperf3_bidir.py<br>M sysmocom/suites/4g/iperf3_dl.py<br>M sysmocom/suites/4g/iperf3_ul.py<br>M sysmocom/suites/4g/ping.py<br>M sysmocom/suites/4g/rrc_idle_mo_ping.py<br>M sysmocom/suites/4g/rrc_idle_mt_ping.py<br>6 files changed, 30 insertions(+), 0 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/51/24051/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/sysmocom/suites/4g/iperf3_bidir.py b/sysmocom/suites/4g/iperf3_bidir.py</span><br><span>index bb1d73a..3c94a88 100755</span><br><span>--- a/sysmocom/suites/4g/iperf3_bidir.py</span><br><span>+++ b/sysmocom/suites/4g/iperf3_bidir.py</span><br><span>@@ -1,5 +1,10 @@</span><br><span> #!/usr/bin/env python3</span><br><span> from osmo_gsm_tester.testenv import *</span><br><span style="color: hsl(120, 100%, 40%);">+import os</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# Overlay suite-specific templates folder if it exists</span><br><span style="color: hsl(120, 100%, 40%);">+if os.path.isdir(os.path.join(os.path.dirname(__file__), 'templates')):</span><br><span style="color: hsl(120, 100%, 40%);">+  tenv.set_overlay_template_dir(os.path.join(os.path.dirname(__file__), 'templates'))</span><br><span> </span><br><span> epc = tenv.epc()</span><br><span> enb = tenv.enb()</span><br><span>diff --git a/sysmocom/suites/4g/iperf3_dl.py b/sysmocom/suites/4g/iperf3_dl.py</span><br><span>index bf5b1f0..9e172c4 100755</span><br><span>--- a/sysmocom/suites/4g/iperf3_dl.py</span><br><span>+++ b/sysmocom/suites/4g/iperf3_dl.py</span><br><span>@@ -1,5 +1,10 @@</span><br><span> #!/usr/bin/env python3</span><br><span> from osmo_gsm_tester.testenv import *</span><br><span style="color: hsl(120, 100%, 40%);">+import os</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# Overlay suite-specific templates folder if it exists</span><br><span style="color: hsl(120, 100%, 40%);">+if os.path.isdir(os.path.join(os.path.dirname(__file__), 'templates')):</span><br><span style="color: hsl(120, 100%, 40%);">+  tenv.set_overlay_template_dir(os.path.join(os.path.dirname(__file__), 'templates'))</span><br><span> </span><br><span> epc = tenv.epc()</span><br><span> enb = tenv.enb()</span><br><span>diff --git a/sysmocom/suites/4g/iperf3_ul.py b/sysmocom/suites/4g/iperf3_ul.py</span><br><span>index 6c0d25d..e243774 100755</span><br><span>--- a/sysmocom/suites/4g/iperf3_ul.py</span><br><span>+++ b/sysmocom/suites/4g/iperf3_ul.py</span><br><span>@@ -1,5 +1,10 @@</span><br><span> #!/usr/bin/env python3</span><br><span> from osmo_gsm_tester.testenv import *</span><br><span style="color: hsl(120, 100%, 40%);">+import os</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# Overlay suite-specific templates folder if it exists</span><br><span style="color: hsl(120, 100%, 40%);">+if os.path.isdir(os.path.join(os.path.dirname(__file__), 'templates')):</span><br><span style="color: hsl(120, 100%, 40%);">+  tenv.set_overlay_template_dir(os.path.join(os.path.dirname(__file__), 'templates'))</span><br><span> </span><br><span> epc = tenv.epc()</span><br><span> enb = tenv.enb()</span><br><span>diff --git a/sysmocom/suites/4g/ping.py b/sysmocom/suites/4g/ping.py</span><br><span>index a78b8d6..9b9993c 100755</span><br><span>--- a/sysmocom/suites/4g/ping.py</span><br><span>+++ b/sysmocom/suites/4g/ping.py</span><br><span>@@ -1,5 +1,10 @@</span><br><span> #!/usr/bin/env python3</span><br><span> from osmo_gsm_tester.testenv import *</span><br><span style="color: hsl(120, 100%, 40%);">+import os</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# Overlay suite-specific templates folder if it exists</span><br><span style="color: hsl(120, 100%, 40%);">+if os.path.isdir(os.path.join(os.path.dirname(__file__), 'templates')):</span><br><span style="color: hsl(120, 100%, 40%);">+  tenv.set_overlay_template_dir(os.path.join(os.path.dirname(__file__), 'templates'))</span><br><span> </span><br><span> epc = tenv.epc()</span><br><span> enb = tenv.enb()</span><br><span>diff --git a/sysmocom/suites/4g/rrc_idle_mo_ping.py b/sysmocom/suites/4g/rrc_idle_mo_ping.py</span><br><span>index 389e5a2..1fc55d7 100755</span><br><span>--- a/sysmocom/suites/4g/rrc_idle_mo_ping.py</span><br><span>+++ b/sysmocom/suites/4g/rrc_idle_mo_ping.py</span><br><span>@@ -1,5 +1,10 @@</span><br><span> #!/usr/bin/env python3</span><br><span> from osmo_gsm_tester.testenv import *</span><br><span style="color: hsl(120, 100%, 40%);">+import os</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# Overlay suite-specific templates folder if it exists</span><br><span style="color: hsl(120, 100%, 40%);">+if os.path.isdir(os.path.join(os.path.dirname(__file__), 'templates')):</span><br><span style="color: hsl(120, 100%, 40%);">+  tenv.set_overlay_template_dir(os.path.join(os.path.dirname(__file__), 'templates'))</span><br><span> </span><br><span> epc = tenv.epc()</span><br><span> enb = tenv.enb()</span><br><span>diff --git a/sysmocom/suites/4g/rrc_idle_mt_ping.py b/sysmocom/suites/4g/rrc_idle_mt_ping.py</span><br><span>index 3360dba..21650e7 100755</span><br><span>--- a/sysmocom/suites/4g/rrc_idle_mt_ping.py</span><br><span>+++ b/sysmocom/suites/4g/rrc_idle_mt_ping.py</span><br><span>@@ -1,5 +1,10 @@</span><br><span> #!/usr/bin/env python3</span><br><span> from osmo_gsm_tester.testenv import *</span><br><span style="color: hsl(120, 100%, 40%);">+import os</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# Overlay suite-specific templates folder if it exists</span><br><span style="color: hsl(120, 100%, 40%);">+if os.path.isdir(os.path.join(os.path.dirname(__file__), 'templates')):</span><br><span style="color: hsl(120, 100%, 40%);">+  tenv.set_overlay_template_dir(os.path.join(os.path.dirname(__file__), 'templates'))</span><br><span> </span><br><span> epc = tenv.epc()</span><br><span> enb = tenv.enb()</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24051">change 24051</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/+/24051"/><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: Ifc43ac41b16813116f2559da5223a6fecc186125 </div>
<div style="display:none"> Gerrit-Change-Number: 24051 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: srs_andre <andre@softwareradiosystems.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>