Module: check_mk
Branch: master
Commit: e8f64d3c95a773c1cef4dd46c9c1901b2694ac8a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e8f64d3c95a773…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Nov 9 16:34:40 2016 +0100
Fixed integrationtest when having spaces in paths
---
tests/testlib/__init__.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index 5f7e46d..3ec6e7c 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -255,8 +255,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
+ print("Executing .f12 in \"%s\"" % path)
+ assert os.system("cd \"%s\" ; ONLY_COPY=1 bash .f12"
% path) >> 8 == 0
def rm_if_not_reusing(self):