From 673e0f94c16da4b6d7f550d6af66fde0c69503e4 Mon Sep 17 00:00:00 2001 From: Meng Zhuo Date: Fri, 17 May 2024 20:37:01 +0800 Subject: [PATCH] unix: skip ethtool driver test for busy interface This CL skips IoctlGetEthtoolDrvinfo on busy interface tests since ethtool getting the same result too. Fixes golang/go#67350 Change-Id: Ia65678e3caab8a9dd42b9cdb8e4cb7f7f0b476da Reviewed-on: https://go-review.googlesource.com/c/sys/+/586435 Reviewed-by: Tobias Klauser Reviewed-by: Dmitri Shuralyov Reviewed-by: Cherry Mui LUCI-TryBot-Result: Go LUCI --- unix/syscall_linux_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/unix/syscall_linux_test.go b/unix/syscall_linux_test.go index 2a92419d3..69c42b5dd 100644 --- a/unix/syscall_linux_test.go +++ b/unix/syscall_linux_test.go @@ -54,6 +54,12 @@ func TestIoctlGetEthtoolDrvinfo(t *testing.T) { continue } + if err == unix.EBUSY { + // See https://go.dev/issues/67350 + t.Logf("%s: ethtool driver busy, possible kernel bug", ifi.Name) + continue + } + t.Fatalf("failed to get ethtool driver info for %q: %v", ifi.Name, err) }