]> Cypherpunks repositories - gostls13.git/commit
os/user: skip tests that create users when running on dev machines
authorqmuntal <quimmuntal@gmail.com>
Mon, 18 Nov 2024 10:07:07 +0000 (11:07 +0100)
committerGopher Robot <gobot@golang.org>
Mon, 18 Nov 2024 20:45:28 +0000 (20:45 +0000)
commit5e82cba9bdf45d81da549477d172f6b5e23106d4
treeb32518d7f3ca9503224e442da3dc3a443b3d7168
parent45869f5931554f0db1169bc268db7ffd8d400e9e
os/user: skip tests that create users when running on dev machines

Creating and deleting users is tricky to get right, and it's not
something we want to do on a developer machine. This change skips the
tests that create users when not running on a Go builder.

This will fix #70396, although I still don't understand why the test
user couldn't be recreated.

Fixes #70396

Change-Id: Ie7004dc209f94e72152c7d6bd8ec95cc12c79757
Reviewed-on: https://go-review.googlesource.com/c/go/+/627877
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/os/user/user_windows_test.go