]> Cypherpunks repositories - gostls13.git/commit
os: don't log the entire environment in tests
authorqmuntal <quimmuntal@gmail.com>
Thu, 20 Feb 2025 17:31:42 +0000 (18:31 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Fri, 21 Feb 2025 06:15:35 +0000 (22:15 -0800)
commit64d82cd72c222caa93b2f71c5970a00ec4e7929a
treea06845d76bb5834a5a90d63d433f4d63d1ec27c7
parente1f02e9ae5efc45a8428e97e0c05fd85a5cbcec4
os: don't log the entire environment in tests

TestEnvironConsistency logs the values of all the environment variables,
which can be quite large on some environments. This change limits the
output to just the variables that caused the test to fail.

Change-Id: Ie796b57ac2cc845093c73298058b720df344fa28
Reviewed-on: https://go-review.googlesource.com/c/go/+/650581
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/os/env_test.go