mirror of https://github.com/golang/go.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 <mpratt@google.com> Auto-Submit: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
e7d238aaf4
commit
eaecd64200
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue