Better fix for running tests under goland

This commit is contained in:
Fedor Korotkiy 2020-02-01 04:47:01 +03:00
parent f9280772ae
commit 6fbac96f75

View file

@ -61,9 +61,9 @@ func Test_testSubmission_incorrect(t *testing.T) {
return return
} }
cmd := exec.Command(os.Args[0], "-v=0", "-test.run=Test_testSubmission_incorrect/"+problem) cmd := exec.Command(os.Args[0], "-test.run=Test_testSubmission_incorrect/"+problem)
cmd.Env = append(os.Environ(), "BE_CRASHER=1") cmd.Env = append(os.Environ(), "BE_CRASHER=1")
cmd.Stdout = os.Stdout cmd.Stdout = nil
cmd.Stderr = os.Stderr cmd.Stderr = os.Stderr
err := cmd.Run() err := cmd.Run()