Module: check_mk
Branch: master
Commit: cd50336397f09797b203c6163960455eb43c7829
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cd50336397f097…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 13 14:31:45 2017 +0100
Fixed path quoting in test
Change-Id: I350ee0d227807b78828fb116abcc68ebef830b87
---
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 493adb5..a70c18e 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -460,7 +460,7 @@ class Site(object):
def switch_to_site_user(self):
env_vars = []
if "WORKSPACE" in os.environ:
- env_vars.append("WORKSPACE=%s" %
os.environ["WORKSPACE"])
+ env_vars.append("WORKSPACE=\"%s\"" %
os.environ["WORKSPACE"])
cmd = subprocess.list2cmdline(env_vars + sys.argv + [ cmk_path() +
"/tests" ])
args = [ "/usr/bin/sudo", "--", "/bin/su",
"-l", self.id, "-c", cmd ]