Skip to content
Snippets Groups Projects
Commit 86e3456f authored by Roberto Rojas's avatar Roberto Rojas Committed by Liz Rice
Browse files

issue #243: Changes condition so that score: false tests are performed (#357)

* issue #243: Changes condition so that score: false tests are performed

* issue #243: Changes comments.
parent b86dd92c
No related merge requests found
...@@ -102,8 +102,8 @@ func (c *Check) run() State { ...@@ -102,8 +102,8 @@ func (c *Check) run() State {
return c.State return c.State
} }
// If check type is manual or the check is not scored, force result to WARN // If check type is manual force result to WARN
if c.Type == "manual" || !c.Scored { if c.Type == "manual" {
c.State = WARN c.State = WARN
return c.State return c.State
} }
...@@ -193,7 +193,11 @@ func (c *Check) run() State { ...@@ -193,7 +193,11 @@ func (c *Check) run() State {
if finalOutput.testResult { if finalOutput.testResult {
c.State = PASS c.State = PASS
} else { } else {
if c.Scored {
c.State = FAIL c.State = FAIL
} else {
c.State = WARN
}
} }
} else { } else {
errmsgs += handleError( errmsgs += handleError(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment