syz-ci: unset GOPATH

syz-ci always passes own GOPATH,
if GOPATH is already present in env, it causes havoc.
Unset it.
This commit is contained in:
Dmitry Vyukov 2018-07-05 13:11:55 +02:00
parent 4906b5987e
commit 84277f259c

View File

@ -60,6 +60,7 @@ func NewSyzUpdater(cfg *Config) *SyzUpdater {
gopath := filepath.Join(wd, "gopath")
os.Setenv("GOROOT", cfg.Goroot)
os.Unsetenv("GOPATH")
os.Setenv("PATH", filepath.Join(cfg.Goroot, "bin")+
string(filepath.ListSeparator)+os.Getenv("PATH"))
syzkallerDir := filepath.Join(gopath, "src", "github.com", "google", "syzkaller")