summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
Diffstat (limited to 'selftest')
-rw-r--r--selftest/tests/test_target.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/selftest/tests/test_target.py b/selftest/tests/test_target.py
index 0abc79b6bb..c75f0cd8f6 100644
--- a/selftest/tests/test_target.py
+++ b/selftest/tests/test_target.py
@@ -71,3 +71,11 @@ class EnvironmentManagerTests(unittest.TestCase):
env.check_ret = False
self.assertFalse(env.check())
self.assertFalse(self.mgr.check_env("something"))
+
+ def test_get_log(self):
+ env = self.mgr.setup_env("something", "prefix")
+ self.assertEquals("", env.get_log())
+ self.assertEquals("", self.mgr.getlog_env("something"))
+ env.log_ret = 'bla'
+ self.assertEquals('bla', env.get_log())
+ self.assertEquals('bla', self.mgr.getlog_env("something"))