Skip to content

Commit 97c4762

Browse files
authored
Update runfiles_test.go
1 parent 9f360fd commit 97c4762

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/runfiles/runfiles_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ func TestPath_FromPathRunfilesLookup(t *testing.T) {
9494
os.Setenv("PATH", origPath)
9595
})
9696
cmd := exec.Command(filepath.Base(prog))
97-
// We add r.Env() after os.Environ() so that runfile environment
98-
// variables override anything set in the process environment.
99-
cmd.Env = append(os.Environ(), r.Env()...)
97+
cmd.Env = []string{}
10098
out, err := cmd.Output()
10199
if err != nil {
102100
t.Fatal(err)

0 commit comments

Comments
 (0)