]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix TestScript/mod_gobuild_import on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Sun, 29 Jul 2018 11:15:25 +0000 (13:15 +0200)
committerDavid du Colombier <0intro@gmail.com>
Sun, 29 Jul 2018 15:42:29 +0000 (15:42 +0000)
commit154394f8d35ebd084f27132396d90309646cafcf
tree84a0d76997cdeb837c558ee44ec184756cc65d61
parent5ad0a524d23b9b69c8c3caddbdf2dfe235c4d725
cmd/go: fix TestScript/mod_gobuild_import on Plan 9

CL 125296 added TestScript/mod_gobuild_import. This
test is failing on Plan 9, because go/build invokes
the go tool which cannot be found in the path.

The "PATH" environment variable has been updated to
contain the path to the go tool on Unix and Windows,
but on Plan 9, the analogous environment variable is
called "path".

This change fixes the script engine by setting
the "path" environment variable on Plan 9.

Fixes #26669.

Change-Id: If1be50e14baceccee591f4f76b7e698f5e12a2d4
Reviewed-on: https://go-review.googlesource.com/126608
Run-TryBot: David du Colombier <0intro@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/script_test.go