aboutsummaryrefslogtreecommitdiffstats
path: root/selftest
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-05-05 13:41:42 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-05-05 13:56:01 +0200
commit40c7bc7765e265939c0da6949608be69e8bedd74 (patch)
tree7a91dc122c93d9c5f9801961677608ad2b78a758 /selftest
parenta442cb8e5f4107611e0bb3d8ccebe9ab876fe26c (diff)
tests: Replace 'suite' with 'tenv'
Diffstat (limited to 'selftest')
-rw-r--r--selftest/suite_test/test_suite/hello_world.py2
-rwxr-xr-xselftest/suite_test/test_suite/test_error.py2
-rwxr-xr-xselftest/suite_test/test_suite/test_fail.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/selftest/suite_test/test_suite/hello_world.py b/selftest/suite_test/test_suite/hello_world.py
index a69f95a..81a9624 100644
--- a/selftest/suite_test/test_suite/hello_world.py
+++ b/selftest/suite_test/test_suite/hello_world.py
@@ -1,5 +1,5 @@
from osmo_gsm_tester.testenv import *
print('hello world')
-print('I am %r / %r' % (suite.suite().name(), test.name()))
+print('I am %r / %r' % (tenv.suite().name(), test.name()))
print('one\ntwo\nthree')
diff --git a/selftest/suite_test/test_suite/test_error.py b/selftest/suite_test/test_suite/test_error.py
index 70d14a1..6a258e3 100755
--- a/selftest/suite_test/test_suite/test_error.py
+++ b/selftest/suite_test/test_suite/test_error.py
@@ -1,5 +1,5 @@
from osmo_gsm_tester.testenv import *
-print('I am %r / %r' % (suite.suite().name(), test.name()))
+print('I am %r / %r' % (tenv.suite().name(), test.name()))
assert False
diff --git a/selftest/suite_test/test_suite/test_fail.py b/selftest/suite_test/test_suite/test_fail.py
index ffb7218..83c9b44 100755
--- a/selftest/suite_test/test_suite/test_fail.py
+++ b/selftest/suite_test/test_suite/test_fail.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
from osmo_gsm_tester.testenv import *
-print('I am %r / %r' % (suite.suite().name(), test.name()))
+print('I am %r / %r' % (tenv.suite().name(), test.name()))
test.set_fail('EpicFail', 'This failure is expected')