Skip to content

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
yedayak added a commit to yedayak/bash-completion that referenced this pull request Jul 4, 2025
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