Module: check_mk
Branch: master
Commit: 05538909c462e4987728d3ad1fcd9364d1b875e3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=05538909c462e4…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Apr 13 07:42:42 2018 +0200
Integration tests: Fixed handing over build info to process in site
The reuse flag influences port selection of site services. It was
skipped by accident during recent restructuring of the tests.
Change-Id: I53ed0110b849eeaecc914d9f23f7ebb9f65e7aeb
---
tests/testlib/__init__.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index 832f374..675689f 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -759,7 +759,8 @@ class Site(object):
# executed this way.
def switch_to_site_user(self):
env_vars = {
- "VERSION": self.version._version,
+ "VERSION" : self.version._version,
+ "REUSE" : "1" if self.reuse else "0",
}
for varname in [ "WORKSPACE", "PYTEST_ADDOPTS",
"BANDIT_OUTPUT_ARGS", "SHELLCHECK_OUTPUT_ARGS",
"PYLINT_ARGS"]:
if varname in os.environ: