]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm/tests: fix _dist_info function logic error
authorKefu Chai <k.chai@proxmox.com>
Mon, 10 Nov 2025 04:10:46 +0000 (12:10 +0800)
committerKefu Chai <k.chai@proxmox.com>
Wed, 12 Nov 2025 03:59:14 +0000 (11:59 +0800)
commit2fadd34104652940844eb914ff3b0b53cb5ff190
tree5a1c94df45109cb07eb737443785f02688f2bff3
parent324c93188e73d03cac1ad788c0a1458ec73650e4
cephadm/tests: fix _dist_info function logic error

The _dist_info helper function had a logic error where it was checking
if 'entry.startswith(entry)' instead of 'entry.startswith(name)'. This
caused the function to always evaluate incorrectly when checking for
.dist-info or .egg-info entries in the zipapp.

This bug was preventing the test assertions from properly validating
that package metadata directories are included in the built cephadm
zipapp.

Fixes a bug introduced in commit 31c8010faa4.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
src/cephadm/tests/build/test_cephadm_build.py