|
|
@ -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 {
|
|
|
|
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(
|
|
|
|