From 188c2b2c910b1d9d691b3643a933b73daaa8a1ca Mon Sep 17 00:00:00 2001 From: Fedor Korotkiy Date: Tue, 21 Apr 2020 16:21:00 +0300 Subject: [PATCH] Pass PATH to testing process --- tools/testtool/commands/test_submission.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/testtool/commands/test_submission.go b/tools/testtool/commands/test_submission.go index d23b22e..d03d9cc 100644 --- a/tools/testtool/commands/test_submission.go +++ b/tools/testtool/commands/test_submission.go @@ -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