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 21, 2020
1 parent 1878fdc commit bd283d9
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 @@ -304,6 +304,9 @@ func (ts *TestScript) setup() string {
Cd: ts.workdir,
ts: ts,
}
if runtime.GOOS == "plan9" {
env.Vars = append(env.Vars, "path="+os.Getenv("path"))
}
if runtime.GOOS != "plan9" {
// Plan 9 environment variable names become files in /env,
// which means they can't contain a slash.
Expand Down

0 comments on commit bd283d9

Please sign in to comment.