]> Cypherpunks repositories - gostls13.git/commit
testing: drop unusual characters from TempDir directory name
authorTobias Klauser <tklauser@distanz.ch>
Tue, 8 Jun 2021 13:33:54 +0000 (15:33 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Thu, 17 Jun 2021 04:32:50 +0000 (04:32 +0000)
commit97cee43c93cfccded197cd281f0a5885cdb605b4
tree3cf8060a80468dbd6bbf611953a7977e93c3a420
parentb0355a3e72df384c82a688524c603a97c1d8e7a7
testing: drop unusual characters from TempDir directory name

Only use safe characters of the test name for the os.MkdirTemp pattern.
This currently includes the alphanumeric characters and ASCII
punctuation characters known not to interact with globs.

Fixes #46624

Change-Id: I402c34775b943fed9b97963c52f79245cc16dc1d
Reviewed-on: https://go-review.googlesource.com/c/go/+/326010
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/testing/testing.go
src/testing/testing_test.go