diff options
| author | Carlos Ramos CarreƱo <vnmabus@gmail.com> | 2025-02-14 10:14:29 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-02-14 14:00:03 -0800 |
| commit | 1959703dddffef61760d5d4fdedc4df8d2d73438 (patch) | |
| tree | 06ceaab1d2b11056eeabde32f58fc8bc65ed3660 /src/syscall/exec_linux_test.go | |
| parent | 8c05e020d534a407c20a3e672971be3aabe2ee9c (diff) | |
| download | go-1959703dddffef61760d5d4fdedc4df8d2d73438.tar.xz | |
syscall: skip testAmbientCaps tests if there is no nobody user
When there is not a nobody user (for example inside Docker), the
tests TestAmbientCaps and TestAmbientCapsUserns should be skipped
instead of failing.
Fixes #71644
Change-Id: I7f92db19e2b6f449d8d897650a0ecd89f5150f4a
GitHub-Last-Rev: a4c4f5bb61929b4981dc0b92d773bd4ef13d7d3d
GitHub-Pull-Request: golang/go#71729
Reviewed-on: https://go-review.googlesource.com/c/go/+/649396
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Diffstat (limited to 'src/syscall/exec_linux_test.go')
| -rw-r--r-- | src/syscall/exec_linux_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syscall/exec_linux_test.go b/src/syscall/exec_linux_test.go index 1c2024af45..04973dc9ad 100644 --- a/src/syscall/exec_linux_test.go +++ b/src/syscall/exec_linux_test.go @@ -646,7 +646,7 @@ func testAmbientCaps(t *testing.T, userns bool) { u, err := user.Lookup("nobody") if err != nil { - t.Fatal(err) + t.Skip("skipping: the nobody user does not exist; see Issue 71644") } uid, err := strconv.ParseInt(u.Uid, 0, 32) if err != nil { |
