Fix
This commit is contained in:
parent
d4a0cca74d
commit
d842678a2c
2 changed files with 1 additions and 9 deletions
|
@ -6,4 +6,4 @@ COPY .gitlab-ci.yml /opt/shad/.grader-ci.yml
|
||||||
|
|
||||||
RUN cd /opt/shad && go install gitlab.com/slon/shad-go/tools/testtool/cmd/testtool
|
RUN cd /opt/shad && go install gitlab.com/slon/shad-go/tools/testtool/cmd/testtool
|
||||||
|
|
||||||
RUN find /opt/shad | xargs chmod o-rwx
|
RUN find /opt/shad -type f -iname '*.go' -not -path '*/testdata/*' | xargs chmod o-rwx
|
||||||
|
|
|
@ -232,10 +232,6 @@ func runTests(testDir, problem string) error {
|
||||||
for testPkg, testBinary := range testBinaries {
|
for testPkg, testBinary := range testBinaries {
|
||||||
relPath := strings.TrimPrefix(testPkg, moduleImportPath)
|
relPath := strings.TrimPrefix(testPkg, moduleImportPath)
|
||||||
|
|
||||||
ls := exec.Command("ls", "-lah", binCache)
|
|
||||||
ls.Stdout = os.Stdout
|
|
||||||
_ = ls.Run()
|
|
||||||
|
|
||||||
cmd := exec.Command(testBinary)
|
cmd := exec.Command(testBinary)
|
||||||
if currentUserIsRoot() {
|
if currentUserIsRoot() {
|
||||||
if err := sandbox(cmd); err != nil {
|
if err := sandbox(cmd); err != nil {
|
||||||
|
@ -248,10 +244,6 @@ 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}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue