]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.16] testing: drop unusual characters from TempDir directory name
authorTobias Klauser <tklauser@distanz.ch>
Tue, 8 Jun 2021 13:33:54 +0000 (15:33 +0200)
committerDmitri Shuralyov <dmitshur@golang.org>
Wed, 26 Jan 2022 18:34:58 +0000 (18:34 +0000)
commit8144f1dc261315004f12bd7cf1e8c043d74965a6
tree15fcb82dfc3e40ab4def8a9767929ab4bb060afa
parent378766af9ed0f2e28d67c2b50e73db7573656669
[release-branch.go1.16] 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.

For #46624
Fixes #50645

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>
(cherry picked from commit 97cee43c93cfccded197cd281f0a5885cdb605b4)
Reviewed-on: https://go-review.googlesource.com/c/go/+/378914
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
src/testing/testing.go
src/testing/testing_test.go