Bug 17835: (followup) Make TestBuilder skip views

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Tomas Cohen Arazi 2017-04-19 11:19:26 -03:00 committed by Jonathan Druart
parent f04c5d5a2c
commit 8e5c9bab4e
1 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,8 @@ subtest 'Build all sources' => sub {
my @source_in_failure;
for my $source ( @sources ) {
my $res;
# Skip the source if it is a view
next if $schema->source($source)->isa('DBIx::Class::ResultSource::View');
eval { $res = $builder->build( { source => $source } ); };
push @source_in_failure, $source if $@ || !defined( $res );
}