SelfTest false positive vermeiden
authorJan Büren <jan@kivitendo-premium.de>
Tue, 12 Jun 2018 11:34:24 +0000 (13:34 +0200)
committerJan Büren <jan@kivitendo-premium.de>
Tue, 12 Jun 2018 11:34:24 +0000 (13:34 +0200)
Der #b4cc349b ist leider auch Schrott.
Im Array hab ich nur failed mit 0 oder 1 als zuverlässige Status-Meldung

SL/BackgroundJob/SelfTest.pm

index d446572..bb62467 100644 (file)
@@ -65,7 +65,7 @@ sub run {
   );
   # if (!$self->aggreg->all_passed || $self->config->{send_email_on_success}) {
   # all_passed is not set or calculated (anymore). it is safe to check only for probs or errors
-  if ($self->aggreg->has_problems || $self->aggreg->has_errors || $self->config->{send_email_on_success}) {
+  if ($self->aggreg->failed || $self->config->{send_email_on_success}) {
     $self->_send_email;
   }