Skip to content

Commit

Permalink
unix: skip ethtool driver test for busy interface
Browse files Browse the repository at this point in the history
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 <tobias.klauser@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
  • Loading branch information
mengzhuo authored and tklauser committed May 17, 2024
1 parent 6943ab6 commit 673e0f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions unix/syscall_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 673e0f9

Please sign in to comment.