Bug 15774: (follow-up) Fix TestBuilder.t so it doesn't catch wrong classes
authorTomas Cohen Arazi <tomascohen@theke.io>
Sat, 9 Mar 2019 08:41:45 +0000 (05:41 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Sat, 9 Mar 2019 08:41:45 +0000 (05:41 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
t/db_dependent/TestBuilder.t

index e69c194..3b6aa20 100644 (file)
@@ -380,7 +380,7 @@ subtest 'build_object() tests' => sub {
 
     subtest 'Test all classes' => sub {
         my $Koha_modules_dir = dirname(__FILE__) . '/../../Koha';
-        my @koha_object_based_modules = `/bin/grep -rl 'sub object_class' $Koha_modules_dir`;
+        my @koha_object_based_modules = `/bin/grep -rl -e '^sub object_class' $Koha_modules_dir`;
         my @source_in_failure;
         for my $module_filepath ( @koha_object_based_modules ) {
             chomp $module_filepath;