From d0c76286a2757d511563357820db48d7bbb58ead Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Sat, 9 Mar 2019 05:41:45 -0300 Subject: [PATCH] Bug 15774: (follow-up) Fix TestBuilder.t so it doesn't catch wrong classes Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/TestBuilder.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/TestBuilder.t b/t/db_dependent/TestBuilder.t index e69c1949b1..3b6aa20e19 100644 --- a/t/db_dependent/TestBuilder.t +++ b/t/db_dependent/TestBuilder.t @@ -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; -- 2.21.0