Module: check_mk
Branch: master
Commit: 4654697f9a552a35a0edd2d385403538e6cb730d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4654697f9a552a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Feb 20 08:19:21 2018 +0100
Tests: Selected version was not propagated to the site test process
Change-Id: I602421f83c3170a98d4ec6203b66ae53bb96b3c2
---
tests/testlib/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index 28966b5..a6c99ea 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -745,7 +745,7 @@ class Site(object):
# Check_MK is now the site, so all tests that somehow rely on the environment should
be
# executed this way.
def switch_to_site_user(self):
- env_var_str = ""
+ env_var_str = "VERSION='%s' " % self.version._version
if "WORKSPACE" in os.environ:
env_var_str = "WORKSPACE='%s' " %
os.environ["WORKSPACE"]