aboutsummaryrefslogtreecommitdiffstats
path: root/selftest
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-05-04 20:21:31 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-05-05 12:19:10 +0200
commitaa1cbdc75a2898f176bfce03e710b0587e6093f5 (patch)
tree7ab13f5049c5406d05b855836b8aebb34fc5a4c7 /selftest
parentee217b0a18d2de6bb5c197329adec1cb11764560 (diff)
Move all obj/ references in suite.py to testenv.py
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 073d07f..a69f95a 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.name(), test.name()))
+print('I am %r / %r' % (suite.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 c0583ff..70d14a1 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.name(), test.name()))
+print('I am %r / %r' % (suite.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 cbaeded..ffb7218 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.name(), test.name()))
+print('I am %r / %r' % (suite.suite().name(), test.name()))
test.set_fail('EpicFail', 'This failure is expected')