fix: add comment on wrong result status
All checks were successful
build / build (push) Successful in 1m17s
build / trigger-build-image (push) Successful in 5s

This commit is contained in:
张泊明518370910136 2024-10-01 05:04:07 -04:00
parent 18b7193bc0
commit 914ad6c7e3
GPG Key ID: D47306D7062CDA9D

View File

@ -57,8 +57,7 @@ func (*Diff) Run(results []stage.ExecutorResult, confAny any) (
comment += fmt.Sprintf( comment += fmt.Sprintf(
"Unexpected executor status: %s.", result.Status, "Unexpected executor status: %s.", result.Status,
) )
continue } else {
}
for _, output := range caseConf.Outputs { for _, output := range caseConf.Outputs {
answer, err := os.ReadFile(output.AnswerPath) answer, err := os.ReadFile(output.AnswerPath)
if err != nil { if err != nil {
@ -87,7 +86,7 @@ func (*Diff) Run(results []stage.ExecutorResult, confAny any) (
) )
} }
} }
}
res = append(res, stage.ParserResult{ res = append(res, stage.ParserResult{
Score: score, Score: score,
Comment: comment, Comment: comment,