Debugging

This commit is contained in:
Fedor Korotkiy 2020-02-13 03:02:31 +03:00
parent d09d084a1d
commit d4a0cca74d

View file

@ -238,9 +238,9 @@ func runTests(testDir, problem string) error {
cmd := exec.Command(testBinary) cmd := exec.Command(testBinary)
if currentUserIsRoot() { if currentUserIsRoot() {
//if err := sandbox(cmd); err != nil { if err := sandbox(cmd); err != nil {
// log.Fatal(err) log.Fatal(err)
//} }
} }
cmd.Dir = filepath.Join(testDir, relPath) cmd.Dir = filepath.Join(testDir, relPath)
@ -248,6 +248,10 @@ func runTests(testDir, problem string) error {
cmd.Stdout = os.Stdout cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr cmd.Stderr = os.Stderr
ls = exec.Command("ls", "-lah", cmd.Dir)
ls.Stdout = os.Stdout
_ = ls.Run()
if err := cmd.Run(); err != nil { if err := cmd.Run(); err != nil {
return &TestFailedError{E: err} return &TestFailedError{E: err}
} }