Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 4b57ec53ae276bfb1ac02653b3af06739d1f4cf1
https://github.com/tribe29/checkmk/commit/4b57ec53ae276bfb1ac02653b3af06739…
Author: Sven Panne <sven.panne(a)tribe29.com>
Date: 2019-08-09 (Fri, 09 Aug 2019)
Changed paths:
M cmk_base/config.py
M tests/unit/cmk_base/test_autochecks.py
M tests/unit/cmk_base/test_check_table.py
M tests/unit/cmk_base/test_config.py
M tests/unit/cmk_base/test_core_config.py
Log Message:
-----------
Unbreak various checks depending on the cwd and/or previous checks.
The file names given to config.load_checks() should better be absolute,
otherwise loading depends on the current working directory, which is almost
always totally wrong. We already have a CheckManager class for this, so we
should simply use that.
Note that various test previously "worked" only by accident: The
load_checks() always failed internally, but it simply gobbled up the "file
not found" exception, continuing as if nothing has happened. If and only if
another test previously loaded the required check, things seemed to work.
Change-Id: Ib65af1c15f48b83bf4c1f29a9da843c75fc8938e