fix: add comment on wrong result status
This commit is contained in:
parent
18b7193bc0
commit
914ad6c7e3
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user