Skip to content

Commit 673e0f9

Browse files
mengzhuotklauser
authored andcommitted
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 <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Cherry Mui <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 6943ab6 commit 673e0f9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

unix/syscall_linux_test.go

+6
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ func TestIoctlGetEthtoolDrvinfo(t *testing.T) {
5454
continue
5555
}
5656

57+
if err == unix.EBUSY {
58+
// See https://go.dev/issues/67350
59+
t.Logf("%s: ethtool driver busy, possible kernel bug", ifi.Name)
60+
continue
61+
}
62+
5763
t.Fatalf("failed to get ethtool driver info for %q: %v", ifi.Name, err)
5864
}
5965

0 commit comments

Comments
 (0)