Module: check_mk
Branch: master
Commit: 899af398dd97f115955507478a9d895572538807
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=899af398dd97f1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Sep 8 12:31:31 2016 +0200
Fixed agent file age test
---
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 8d00727..12af334 100644
--- a/tests/agents/windows/test_precompiled_age.py
+++ b/tests/agents/windows/test_precompiled_age.py
@@ -28,8 +28,8 @@ def test_precompiled_file_ages():
for filename in precompiled_files:
path = "%s/agents/windows/%s" % (cmk_path(), filename)
commit_time = last_commit_time(path)
- assert newest_source_time > commit_time, \
- "%s is newer than source code file %s" % (path,
newest_source_file)
+ assert commit_time > newest_source_time, \
+ "%s is older than source code file %s" % (path,
newest_source_file)
def find_newest_source_file():