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:
parent
f04c5d5a2c
commit
8e5c9bab4e
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue