Module: check_mk
Branch: master
Commit: 36a835403ab22a1c98b9adb163fad398324e1aef
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=36a835403ab22a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Aug 23 11:04:02 2016 +0200
Fixed test when having spaces in paths
---
tests/agents/windows/test_precompiled_age.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/agents/windows/test_precompiled_age.py
b/tests/agents/windows/test_precompiled_age.py
index 617c3c5..8d00727 100644
--- a/tests/agents/windows/test_precompiled_age.py
+++ b/tests/agents/windows/test_precompiled_age.py
@@ -56,7 +56,7 @@ def find_newest_source_file():
def last_commit_time(path):
- lines = os.popen('unset GIT_DIR ; cd %s ; '
- 'git log -n 1 --date=raw -- %s' % (os.path.dirname(path),
path)).readlines()
+ lines = os.popen('unset GIT_DIR ; cd "%s" ; '
+ 'git log -n 1 --date=raw -- "%s"' % (os.path.dirname(path),
path)).readlines()
timestamp = int(lines[2].split()[1])
return timestamp