Commit 43f294b
committed
test(interfaces): Test for missing ip or ifconfig
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 #10901 parent 90ef9a2 commit 43f294b
1 file changed
+22
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
0 commit comments