Skip to content

Conversation

@yedayak
Copy link
Collaborator

@yedayak yedayak commented Dec 31, 2025

Fails in a container without any services or init related tools.

Copy link
Collaborator

@akinomyoga akinomyoga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should provide a fixture file to replace one of /etc/init.d, /etc/rc.d/init.d, etc. as done in test/t/unit/test_unit_compgen_xinetd_services.py.

local xinetddir=${_comp__test_xinetd_dir:-/etc/xinetd.d}

"foo() { local _comp__test_xinetd_dir=$PWD/_comp_compgen_xinetd_services/xinetd.d; unset -v COMPREPLY; "

edit: cf c2cafae

Fails in a container without any services or init related tools.
@yedayak
Copy link
Collaborator Author

yedayak commented Jan 1, 2026

Maybe we should provide a fixture file to replace one of /etc/init.d, /etc/rc.d/init.d, etc. as done in test/t/unit/test_unit_compgen_xinetd_services.py.

local xinetddir=${_comp__test_xinetd_dir:-/etc/xinetd.d}

"foo() { local _comp__test_xinetd_dir=$PWD/_comp_compgen_xinetd_services/xinetd.d; unset -v COMPREPLY; "

edit: cf c2cafae

Maybe, I'm not really sure what the format of those files are supposed to be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants