Debugging
This commit is contained in:
parent
d09d084a1d
commit
d4a0cca74d
1 changed files with 7 additions and 3 deletions
|
@ -238,9 +238,9 @@ func runTests(testDir, problem string) error {
|
|||
|
||||
cmd := exec.Command(testBinary)
|
||||
if currentUserIsRoot() {
|
||||
//if err := sandbox(cmd); err != nil {
|
||||
// log.Fatal(err)
|
||||
//}
|
||||
if err := sandbox(cmd); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
cmd.Dir = filepath.Join(testDir, relPath)
|
||||
|
@ -248,6 +248,10 @@ func runTests(testDir, problem string) error {
|
|||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
|
||||
ls = exec.Command("ls", "-lah", cmd.Dir)
|
||||
ls.Stdout = os.Stdout
|
||||
_ = ls.Run()
|
||||
|
||||
if err := cmd.Run(); err != nil {
|
||||
return &TestFailedError{E: err}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue