Change in osmo-gsm-tester[master]: 4g: add overlay template path for all suites

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

srs_andre gerrit-no-reply at lists.osmocom.org
Mon May 3 09:32:11 UTC 2021


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


Change subject: 4g: add overlay template path for all suites
......................................................................

4g: add overlay template path for all suites

this allows, without changing the test case, to use a custom
template, which is useful for development. By default, nothing changes
and the OGT template is used

Change-Id: Ifc43ac41b16813116f2559da5223a6fecc186125
---
M sysmocom/suites/4g/iperf3_bidir.py
M sysmocom/suites/4g/iperf3_dl.py
M sysmocom/suites/4g/iperf3_ul.py
M sysmocom/suites/4g/ping.py
M sysmocom/suites/4g/rrc_idle_mo_ping.py
M sysmocom/suites/4g/rrc_idle_mt_ping.py
6 files changed, 30 insertions(+), 0 deletions(-)



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

diff --git a/sysmocom/suites/4g/iperf3_bidir.py b/sysmocom/suites/4g/iperf3_bidir.py
index bb1d73a..3c94a88 100755
--- a/sysmocom/suites/4g/iperf3_bidir.py
+++ b/sysmocom/suites/4g/iperf3_bidir.py
@@ -1,5 +1,10 @@
 #!/usr/bin/env python3
 from osmo_gsm_tester.testenv import *
+import os
+
+# Overlay suite-specific templates folder if it exists
+if os.path.isdir(os.path.join(os.path.dirname(__file__), 'templates')):
+  tenv.set_overlay_template_dir(os.path.join(os.path.dirname(__file__), 'templates'))
 
 epc = tenv.epc()
 enb = tenv.enb()
diff --git a/sysmocom/suites/4g/iperf3_dl.py b/sysmocom/suites/4g/iperf3_dl.py
index bf5b1f0..9e172c4 100755
--- a/sysmocom/suites/4g/iperf3_dl.py
+++ b/sysmocom/suites/4g/iperf3_dl.py
@@ -1,5 +1,10 @@
 #!/usr/bin/env python3
 from osmo_gsm_tester.testenv import *
+import os
+
+# Overlay suite-specific templates folder if it exists
+if os.path.isdir(os.path.join(os.path.dirname(__file__), 'templates')):
+  tenv.set_overlay_template_dir(os.path.join(os.path.dirname(__file__), 'templates'))
 
 epc = tenv.epc()
 enb = tenv.enb()
diff --git a/sysmocom/suites/4g/iperf3_ul.py b/sysmocom/suites/4g/iperf3_ul.py
index 6c0d25d..e243774 100755
--- a/sysmocom/suites/4g/iperf3_ul.py
+++ b/sysmocom/suites/4g/iperf3_ul.py
@@ -1,5 +1,10 @@
 #!/usr/bin/env python3
 from osmo_gsm_tester.testenv import *
+import os
+
+# Overlay suite-specific templates folder if it exists
+if os.path.isdir(os.path.join(os.path.dirname(__file__), 'templates')):
+  tenv.set_overlay_template_dir(os.path.join(os.path.dirname(__file__), 'templates'))
 
 epc = tenv.epc()
 enb = tenv.enb()
diff --git a/sysmocom/suites/4g/ping.py b/sysmocom/suites/4g/ping.py
index a78b8d6..9b9993c 100755
--- a/sysmocom/suites/4g/ping.py
+++ b/sysmocom/suites/4g/ping.py
@@ -1,5 +1,10 @@
 #!/usr/bin/env python3
 from osmo_gsm_tester.testenv import *
+import os
+
+# Overlay suite-specific templates folder if it exists
+if os.path.isdir(os.path.join(os.path.dirname(__file__), 'templates')):
+  tenv.set_overlay_template_dir(os.path.join(os.path.dirname(__file__), 'templates'))
 
 epc = tenv.epc()
 enb = tenv.enb()
diff --git a/sysmocom/suites/4g/rrc_idle_mo_ping.py b/sysmocom/suites/4g/rrc_idle_mo_ping.py
index 389e5a2..1fc55d7 100755
--- a/sysmocom/suites/4g/rrc_idle_mo_ping.py
+++ b/sysmocom/suites/4g/rrc_idle_mo_ping.py
@@ -1,5 +1,10 @@
 #!/usr/bin/env python3
 from osmo_gsm_tester.testenv import *
+import os
+
+# Overlay suite-specific templates folder if it exists
+if os.path.isdir(os.path.join(os.path.dirname(__file__), 'templates')):
+  tenv.set_overlay_template_dir(os.path.join(os.path.dirname(__file__), 'templates'))
 
 epc = tenv.epc()
 enb = tenv.enb()
diff --git a/sysmocom/suites/4g/rrc_idle_mt_ping.py b/sysmocom/suites/4g/rrc_idle_mt_ping.py
index 3360dba..21650e7 100755
--- a/sysmocom/suites/4g/rrc_idle_mt_ping.py
+++ b/sysmocom/suites/4g/rrc_idle_mt_ping.py
@@ -1,5 +1,10 @@
 #!/usr/bin/env python3
 from osmo_gsm_tester.testenv import *
+import os
+
+# Overlay suite-specific templates folder if it exists
+if os.path.isdir(os.path.join(os.path.dirname(__file__), 'templates')):
+  tenv.set_overlay_template_dir(os.path.join(os.path.dirname(__file__), 'templates'))
 
 epc = tenv.epc()
 enb = tenv.enb()

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24051
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: Ifc43ac41b16813116f2559da5223a6fecc186125
Gerrit-Change-Number: 24051
Gerrit-PatchSet: 1
Gerrit-Owner: srs_andre <andre at softwareradiosystems.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210503/d707288c/attachment.htm>


More information about the gerrit-log mailing list