tests: Replace 'suite' with 'tenv'

Change-Id: I777ec59ffd83b861ddc09e85e52d7a8896264b8c
diff --git a/sysmocom/ttcn3/suites/ttcn3_bts_tests/lib/testlib.py b/sysmocom/ttcn3/suites/ttcn3_bts_tests/lib/testlib.py
index 288450f..0eceef7 100644
--- a/sysmocom/ttcn3/suites/ttcn3_bts_tests/lib/testlib.py
+++ b/sysmocom/ttcn3/suites/ttcn3_bts_tests/lib/testlib.py
@@ -4,13 +4,13 @@
 
 from osmo_gsm_tester.testenv import *
 
-def run_ttcn3(suite, test_obj, testdir, bts, osmocon, nat_rsl_ip, ttcn3_test_execute, ttcn3_test_extra_module_params=""):
+def run_ttcn3(tenv, test_obj, testdir, bts, osmocon, nat_rsl_ip, ttcn3_test_execute, ttcn3_test_extra_module_params=""):
     own_dir = testdir
     script_file = os.path.join(testdir, 'scripts', 'run_ttcn3_docker.sh')
     bts_tmpl_file = os.path.join(testdir, 'scripts', 'BTS_Tests.cfg.tmpl')
     script_run_dir = test_obj.get_run_dir().new_dir('ttcn3')
     bts_cfg_file = os.path.join(str(script_run_dir), 'BTS_Tests.cfg')
-    junit_ttcn3_dst_file = os.path.join(str(suite.trial.get_run_dir()), 'trial-') + test_obj.basename + '.xml'
+    junit_ttcn3_dst_file = os.path.join(str(tenv.suite().trial().get_run_dir()), 'trial-') + test_obj.basename + '.xml'
     if bts.bts_type() == 'osmo-bts-trx':
         pcu_available = True
         pcu_sk = bts.pcu_socket_path()
diff --git a/sysmocom/ttcn3/suites/ttcn3_bts_tests/ttcn3_bts_tests.py b/sysmocom/ttcn3/suites/ttcn3_bts_tests/ttcn3_bts_tests.py
index a34c847..b7c5781 100755
--- a/sysmocom/ttcn3/suites/ttcn3_bts_tests/ttcn3_bts_tests.py
+++ b/sysmocom/ttcn3/suites/ttcn3_bts_tests/ttcn3_bts_tests.py
@@ -3,20 +3,20 @@
 
 from osmo_gsm_tester.testenv import *
 import testlib
-suite.test_import_modules_register_for_cleanup(testlib)
+tenv.test_import_modules_register_for_cleanup(testlib)
 from testlib import run_ttcn3
 
 ttcn3_test_execute="BTS_Tests.control"
 
-hlr_dummy = suite.hlr()
-mgw_dummy = suite.mgw()
-stp_dummy = suite.stp()
-msc_dummy = suite.msc(hlr_dummy, mgw_dummy, stp_dummy)
-ggsn_dummy = suite.ggsn()
-sgsn_dummy = suite.sgsn(hlr_dummy, ggsn_dummy)
-bsc = suite.bsc(msc_dummy, mgw_dummy, stp_dummy)
-bts = suite.bts()
-osmocon = suite.osmocon()
+hlr_dummy = tenv.hlr()
+mgw_dummy = tenv.mgw()
+stp_dummy = tenv.stp()
+msc_dummy = tenv.msc(hlr_dummy, mgw_dummy, stp_dummy)
+ggsn_dummy = tenv.ggsn()
+sgsn_dummy = tenv.sgsn(hlr_dummy, ggsn_dummy)
+bsc = tenv.bsc(msc_dummy, mgw_dummy, stp_dummy)
+bts = tenv.bts()
+osmocon = tenv.osmocon()
 
 bts.set_num_trx(1)
 bts.set_trx_phy_channel(0, 0, 'CCCH+SDCCH4')
@@ -34,7 +34,7 @@
 msc_dummy.start()
 mgw_dummy.start()
 
-nat_rsl_ip = suite.ip_address().get('addr')
+nat_rsl_ip = tenv.ip_address().get('addr')
 bsc.set_rsl_ip(nat_rsl_ip)
 bsc.bts_add(bts)
 sgsn_dummy.bts_add(bts)
@@ -46,4 +46,4 @@
 osmocon.start()
 
 testdir = os.path.dirname(os.path.realpath(__file__))
-run_ttcn3(suite, test, testdir, bts, osmocon, nat_rsl_ip, ttcn3_test_execute)
+run_ttcn3(tenv. test, testdir, bts, osmocon, nat_rsl_ip, ttcn3_test_execute)