From: Bryan C. Mills Date: Wed, 19 Apr 2023 19:39:01 +0000 (-0400) Subject: cmd/go: assert on more of the version string in TestScript/gotoolchain X-Git-Tag: go1.21rc1~813 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=eaecd642004641a0353786f1c679bc3c726d1a02;p=gostls13.git cmd/go: assert on more of the version string in TestScript/gotoolchain The previous assert triggers whenever the 40-character git commit contains the substring "999", which happens with a probability decidedly greater than zero. For #57001. Change-Id: If0f1bc1a3dd0e6b7e66768d0cf3a79545ee4e5ed Reviewed-on: https://go-review.googlesource.com/c/go/+/486399 Reviewed-by: Michael Pratt Auto-Submit: Bryan Mills Run-TryBot: Bryan Mills TryBot-Result: Gopher Robot --- diff --git a/src/cmd/go/testdata/script/gotoolchain.txt b/src/cmd/go/testdata/script/gotoolchain.txt index 0b7b29d04f..0e763e5caa 100644 --- a/src/cmd/go/testdata/script/gotoolchain.txt +++ b/src/cmd/go/testdata/script/gotoolchain.txt @@ -1,3 +1,4 @@ +[!GOOS:windows] [!exec:/bin/sh] skip [!GOOS:windows] chmod 0755 $WORK/bin/go1.999testpath [!GOOS:plan9] env PATH=$WORK/bin${:}$PATH [GOOS:plan9] env path=$WORK/bin${:}$path @@ -5,7 +6,7 @@ # Plain go version go version -! stdout 999 +! stdout go1\.999 # GOTOOLCHAIN from PATH env GOTOOLCHAIN=go1.999testpath