mirror of
https://github.com/golang/go.git
synced 2025-10-19 11:03:18 +00:00
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
This commit is contained in:
parent
ca4649747a
commit
a4c4f5bb61
1 changed files with 1 additions and 1 deletions
|
@ -646,7 +646,7 @@ func testAmbientCaps(t *testing.T, userns bool) {
|
||||||
|
|
||||||
u, err := user.Lookup("nobody")
|
u, err := user.Lookup("nobody")
|
||||||
if err != nil {
|
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)
|
uid, err := strconv.ParseInt(u.Uid, 0, 32)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue