Skip to content

Commit

Permalink
testscript: set $path on Plan 9
Browse files Browse the repository at this point in the history
This is a port of this CL from upstream:
https://go-review.googlesource.com/126608
  • Loading branch information
fhs committed Nov 22, 2020
1 parent fcfd24a commit 815d671
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testscript/testscript.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ func (ts *TestScript) setup() string {
Cd: ts.workdir,
ts: ts,
}
if runtime.GOOS == "plan9" {
env.Vars = append(env.Vars, "path="+os.Getenv("path"))
}
// Must preserve SYSTEMROOT on Windows: https://github.com/golang/go/issues/25513 et al
if runtime.GOOS == "windows" {
env.Vars = append(env.Vars,
Expand Down

0 comments on commit 815d671

Please sign in to comment.