mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 22:07:09 +01:00
Only report failure if fail-on-error is set
The flag is checked when exiting early, but the report update at the end ignores it, causing the test run to be reported as a failure. Fixes #161. Signed-off-by: Trond Einar Snekvik <Trond.Einar.Snekvik@nordicsemi.no>
This commit is contained in:
parent
8bf0c7d9a7
commit
e7733f494f
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ class TestReporter {
|
|||
core.info('Creating annotations')
|
||||
const annotations = getAnnotations(results, this.maxAnnotations)
|
||||
|
||||
const isFailed = results.some(tr => tr.result === 'failed')
|
||||
const isFailed = this.failOnError && results.some(tr => tr.result === 'failed')
|
||||
const conclusion = isFailed ? 'failure' : 'success'
|
||||
const icon = isFailed ? Icon.fail : Icon.success
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue