tests: Do not fail when network interface aliases are present.
Fixes <https://bugs.gnu.org/42111>. * tests/syscalls.scm ("network-interface-names"): Filter interface names with a colon.
parent
fdbba544d8
commit
5e113cf442
|
@ -382,7 +382,11 @@
|
||||||
(member "lo" names))))
|
(member "lo" names))))
|
||||||
|
|
||||||
(test-assert "network-interface-names"
|
(test-assert "network-interface-names"
|
||||||
(match (network-interface-names)
|
(match (remove (lambda (interface)
|
||||||
|
;; Ignore interface aliases since they don't show up in
|
||||||
|
;; (all-network-interface-names).
|
||||||
|
(string-contains interface ":"))
|
||||||
|
(network-interface-names))
|
||||||
(((? string? names) ..1)
|
(((? string? names) ..1)
|
||||||
(lset<= string=? names (all-network-interface-names)))))
|
(lset<= string=? names (all-network-interface-names)))))
|
||||||
|
|
||||||
|
|
Reference in New Issue