]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix TestScript on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Thu, 19 Jul 2018 08:41:54 +0000 (10:41 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 19 Jul 2018 19:03:56 +0000 (19:03 +0000)
commit0ba03b8f42dc09212dfa28baa374577168a2bce7
tree5061a56064fe362a0f9156d7a2d953b43a375203
parentfec97c0aa76eb19bd58ca33001063b726ab9ce27
cmd/go: fix TestScript on Plan 9

CL 123577 added TestScript. The install_rebuild_gopath
test was failing on Plan 9 because it defines a GOPATH
using the ':' separator, while Plan 9 expects the '\000'
separator in environment variables.

This change fixes the script engine by defining a new
":" environment variable set to OS-specific path list
separator.

The install_rebuild_gopath test has been updated to use
"${:}" instead of ":".

Fixes #26421.

Change-Id: I58a97f882cdb48cc0836398b0d98a80ea58041ba
Reviewed-on: https://go-review.googlesource.com/124435
Run-TryBot: David du Colombier <0intro@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/script_test.go
src/cmd/go/testdata/script/README
src/cmd/go/testdata/script/install_rebuild_gopath.txt