summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--selftest/tests/test_target.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/selftest/tests/test_target.py b/selftest/tests/test_target.py
index c75f0cd8f6..d29bd66cda 100644
--- a/selftest/tests/test_target.py
+++ b/selftest/tests/test_target.py
@@ -79,3 +79,10 @@ class EnvironmentManagerTests(unittest.TestCase):
env.log_ret = 'bla'
self.assertEquals('bla', env.get_log())
self.assertEquals('bla', self.mgr.getlog_env("something"))
+
+ def test_get_running_env(self):
+ env = self.mgr.setup_env("something", "prefix")
+ self.assertIs(env, self.mgr.get_running_env("something"))
+
+ def test_get_running_env_nonexistant(self):
+ self.assertIs(None, self.mgr.get_running_env("something"))