Module: check_mk
Branch: master
Commit: dc4714ec19d58b008584e8133fafe6f62ce4a861
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dc4714ec19d58b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Nov 10 08:31:30 2016 +0100
Fixed permissions of .f12 call
---
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 3ec6e7c..7419ffb 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -256,7 +256,8 @@ class Site(object):
for path in paths:
if os.path.exists("%s/.f12" % path):
print("Executing .f12 in \"%s\"" % path)
- assert os.system("cd \"%s\" ; ONLY_COPY=1 bash .f12"
% path) >> 8 == 0
+ assert os.system("cd \"%s\" ; "
+ "sudo ONLY_COPY=1 SITE=%s bash .f12" % (path,
self.id)) >> 8 == 0
def rm_if_not_reusing(self):