Module: check_mk
Branch: master
Commit: ed5b4c807bba62b7ddfaee46decf3d11b0e578bc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ed5b4c807bba62…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Jan 30 10:30:19 2019 +0100
Simplified cmk.util.paths.
Prepare for future Path() usage on the way.
Note that a few unit tests had to be fixed, they implicitly relied on the
fact that OMD_ROOT is not set and this in turn implies an empty string in
cmk.util.paths.omd_root. This is a bit fragile and convoluted, perhaps unit
tests should run under a known dummy OMD_ROOT?
Change-Id: I0c7917da9044f3712f05d6edbe87605846782049
---
cmk/utils/paths.py | 208 ++++++++++-----------------
tests/unit/cmk/gui/watolib/test_rulespecs.py | 6 +-
2 files changed, 77 insertions(+), 137 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=ed5b4c807b…