Pass PATH to testing process

This commit is contained in:
Fedor Korotkiy 2020-04-21 16:21:00 +03:00
parent e70bce4922
commit 188c2b2c91

View file

@ -283,7 +283,10 @@ func runTests(testDir, privateRepo, problem string) error {
}
cmd.Dir = filepath.Join(testDir, relPath)
cmd.Env = []string{testtool.BinariesEnv + "=" + string(binariesJSON)}
cmd.Env = []string{
testtool.BinariesEnv + "=" + string(binariesJSON),
"PATH=" + os.Getenv("PATH"),
}
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
@ -303,7 +306,10 @@ func runTests(testDir, privateRepo, problem string) error {
var buf bytes.Buffer
benchCmd.Dir = filepath.Join(testDir, relPath)
benchCmd.Env = []string{testtool.BinariesEnv + "=" + string(binariesJSON)}
benchCmd.Env = []string{
testtool.BinariesEnv + "=" + string(binariesJSON),
"PATH=" + os.Getenv("PATH"),
}
benchCmd.Stdout = &buf
benchCmd.Stderr = os.Stderr