Skip to content

Commit 0ad73eb

Browse files
committed
Fix the path to look for bytecode files during the test
The bytecode files should be checked inside 'version', which is a symlink and was not properly resolved by the rglob. CMK-24352 Change-Id: I8f2ab096b7b4bfabeeccdeccedee3f420b274761 (cherry picked from commit bcb1b9e)
1 parent 008c6c2 commit 0ad73eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/integration/omd/test_python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def test_python_is_bytecode_compiled(
256256
def test_all_bytecode_files_exist(site: Site) -> None:
257257
# see CMK-24370 - pyc files will be generated as a postinst step. In contrast to before, `compileall` will
258258
# be executed on _all_ files below `site.root`, so we simply check for an 1on1 existence.
259-
for py_path in Path(site.root).rglob("*.py"):
259+
for py_path in (Path(site.root / "version")).rglob("*.py"):
260260
if "check_mk/agents/plugins" in py_path.as_posix():
261261
continue
262262
if "/skel/" in py_path.as_posix():

0 commit comments

Comments
 (0)