Module: check_mk
Branch: master
Commit: 36528ef7b5104f8412cb142bb465416375f7da91
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=36528ef7b5104f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Apr 4 13:40:30 2017 +0200
Tests with fake version: Also update version in python path
Change-Id: Ib78af96eaf22eeb1a83fa7c3a36cb28165a48859
---
tests/testlib/__init__.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index 8e25b9f..179aa3b 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -339,6 +339,10 @@ class Site(object):
(src_version, new_version_name, self.version.version_path())) >> 8 !=
0:
raise Exception("Failed to set new version to bin/omd")
+ if os.system("sudo chrpath -r %s/lib %s/bin/python" %
+ (self.version.version_path(), self.version.version_path())) >> 8 != 0:
+ raise Exception("Failed to set new version to bin/python")
+
def _update_with_f12_files(self):
paths = [