regression: only run checks for specified target

This commit is contained in:
Norwin 2018-07-18 20:30:16 +02:00
parent 17c66b5100
commit 97db2d0b9e

View file

@ -72,6 +72,10 @@ func (box Box) RunChecks() ([]CheckResult, error) {
continue
}
if event.Target != s.Id && event.Target != eventTargetAll {
continue
}
checker := checkers[event.Type]
if checker.checkFunc == nil {
boxLogger.Warnf("ignoring unknown event type %s", event.Type)