Skip to content

test(interfaces): Test for missing ip or ifconfig #1394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2025

Conversation

yedayak
Copy link
Collaborator

@yedayak yedayak commented Jun 16, 2025

We have a fallback to ifconfig if ip doesn't exist, but it wasn't tested anywhere that does have ip (pretty sure that's all of our current distro tests).

Introduce a parameterized fixture that "hides" ip or ifconfig and, use it in tests.
Also introduce another test that actually makes sure that we find the correct interfaces.

Follow up to #1090

We have a fallback to `ifconfig` if `ip` doesn't exist, but it wasn't
tested anywhere that does have `ip` (pretty sure that's all of our current
distro tests).

Introduce a parameterized fixture that "hides" `ip` or `ifconfig` and,
use it in tests.
Also introduce another test that actually makes sure that we find the
correct interfaces.

Follow up to scop#1090
yedayak added a commit to yedayak/bash-completion that referenced this pull request Jun 16, 2025
@yedayak yedayak merged commit 07e2934 into scop:main Jun 17, 2025
7 checks passed
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