feat(parser/diff): option to force quit on diff
This commit is contained in:
parent
a001b26b66
commit
c218c93069
|
@ -29,6 +29,7 @@ type Conf struct {
|
||||||
AnswerPath string
|
AnswerPath string
|
||||||
CompareSpace bool
|
CompareSpace bool
|
||||||
AlwaysHide bool
|
AlwaysHide bool
|
||||||
|
ForceQuitOnDiff bool
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -67,6 +68,9 @@ func (*Diff) Run(results []stage.ExecutorResult, confAny any) (
|
||||||
score += output.Score
|
score += output.Score
|
||||||
comment += conf.PassComment
|
comment += conf.PassComment
|
||||||
} else {
|
} else {
|
||||||
|
if output.ForceQuitOnDiff {
|
||||||
|
forceQuit = true
|
||||||
|
}
|
||||||
comment += conf.FailComment
|
comment += conf.FailComment
|
||||||
comment += fmt.Sprintf("Difference found in `%s`.\n",
|
comment += fmt.Sprintf("Difference found in `%s`.\n",
|
||||||
output.FileName)
|
output.FileName)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user