From 5e113cf4424b2746cbf3633cd2106c62b89e5b49 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sun, 28 Jun 2020 17:52:24 +0200 Subject: tests: Do not fail when network interface aliases are present. Fixes . * tests/syscalls.scm ("network-interface-names"): Filter interface names with a colon. --- tests/syscalls.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/syscalls.scm b/tests/syscalls.scm index 6acaa0b131..09aa228e8e 100644 --- a/tests/syscalls.scm +++ b/tests/syscalls.scm @@ -382,7 +382,11 @@ (member "lo" 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) (lset<= string=? names (all-network-interface-names))))) -- cgit 1.4.1