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
This commit is contained in:
Andre Puschmann 2021-04-15 10:50:36 +02:00
parent a54ca0b514
commit 4462067afc
6 changed files with 30 additions and 0 deletions

View File

@ -1,5 +1,10 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from osmo_gsm_tester.testenv import * 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() epc = tenv.epc()
enb = tenv.enb() enb = tenv.enb()

View File

@ -1,5 +1,10 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from osmo_gsm_tester.testenv import * 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() epc = tenv.epc()
enb = tenv.enb() enb = tenv.enb()

View File

@ -1,5 +1,10 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from osmo_gsm_tester.testenv import * 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() epc = tenv.epc()
enb = tenv.enb() enb = tenv.enb()

View File

@ -1,5 +1,10 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from osmo_gsm_tester.testenv import * 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() epc = tenv.epc()
enb = tenv.enb() enb = tenv.enb()

View File

@ -1,5 +1,10 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from osmo_gsm_tester.testenv import * 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() epc = tenv.epc()
enb = tenv.enb() enb = tenv.enb()

View File

@ -1,5 +1,10 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from osmo_gsm_tester.testenv import * 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() epc = tenv.epc()
enb = tenv.enb() enb = tenv.enb()