Try fixing analysis test

This commit is contained in:
Fedor Korotkiy 2021-04-30 12:51:33 +03:00
parent a8a7442fda
commit 6fc471456d

View file

@ -97,7 +97,6 @@ func testSubmission(studentRepo, privateRepo, problem string) error {
if err := os.Chmod(tmpRepo, 0755); err != nil { if err := os.Chmod(tmpRepo, 0755); err != nil {
log.Fatal(err) log.Fatal(err)
} }
defer func() { _ = os.RemoveAll(tmpRepo) }() defer func() { _ = os.RemoveAll(tmpRepo) }()
log.Printf("testing submission in %s", tmpRepo) log.Printf("testing submission in %s", tmpRepo)
@ -287,6 +286,7 @@ func runTests(testDir, privateRepo, problem string) error {
testtool.BinariesEnv + "=" + string(binariesJSON), testtool.BinariesEnv + "=" + string(binariesJSON),
"PATH=" + os.Getenv("PATH"), "PATH=" + os.Getenv("PATH"),
"HOME=" + os.Getenv("HOME"), "HOME=" + os.Getenv("HOME"),
"GOCACHE=" + filepath.Join(binCache, ".cache"),
} }
cmd.Stdout = os.Stdout cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr cmd.Stderr = os.Stderr
@ -311,6 +311,7 @@ func runTests(testDir, privateRepo, problem string) error {
testtool.BinariesEnv + "=" + string(binariesJSON), testtool.BinariesEnv + "=" + string(binariesJSON),
"PATH=" + os.Getenv("PATH"), "PATH=" + os.Getenv("PATH"),
"HOME=" + os.Getenv("HOME"), "HOME=" + os.Getenv("HOME"),
"GOCACHE=" + filepath.Join(binCache, ".cache"),
} }
benchCmd.Stdout = &buf benchCmd.Stdout = &buf
benchCmd.Stderr = os.Stderr benchCmd.Stderr = os.Stderr