From: Jan Büren Date: Mon, 19 Dec 2016 09:16:36 +0000 (+0100) Subject: Revert "Mehr als eine SelfTest-Modul prüfen" X-Git-Tag: release-3.5.4~1803 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c13c09e6e6ed904d35204aa5ad33268b84981e6d;p=kivitendo-erp.git Revert "Mehr als eine SelfTest-Modul prüfen" git add --patch falsch angewandt. This reverts commit db4680753f5ec1de62bdc0557f850afd810444d1. --- diff --git a/SL/BackgroundJob/SelfTest.pm b/SL/BackgroundJob/SelfTest.pm index c1c608bbf..2f8883339 100644 --- a/SL/BackgroundJob/SelfTest.pm +++ b/SL/BackgroundJob/SelfTest.pm @@ -48,18 +48,11 @@ sub setup { sub run { my $self = shift; - my $db_obj = shift; - # options - my $options = $db_obj->data_as_hash; $self->setup; return 1 unless $self->modules; - - $main::lxdebug->message(0, 'optioni' . Dumper($self->modules)); foreach my $module ($self->modules) { - next unless $module eq $options->{module}; - $main::lxdebug->message(0, 'hieur' . $module); $self->run_module($module); } @@ -102,10 +95,11 @@ sub run_module { } or $self->add_errors($::locale->text('Could not load class #1 (#2): "#3"', $module, $file, $@)) && return; eval { - $self->tester->subtest($module => sub { - $module->new->run; - }); - 1 + my $worker = $module->new; + $worker->tester($self->tester); + + $worker->run; + 1; } or $self->add_errors($::locale->text('Could not load class #1, #2', $module, $@)) && return; $self->add_full_diag($output);