From b50ceefdd2376f5d24315447c76d3858ffc9ffeb Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Tue, 19 Dec 2023 14:59:36 +0000 Subject: [PATCH] Bug 35536: Silence tests when run from koha-qa.pl Extending the regex in Plugins::_verbose. Test plan: Run qa tools on patch set. Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer (cherry picked from commit 9b9ae27a0e3c5acfb6093c7977a001fcf4857033) Signed-off-by: Fridolin Somers --- Koha/Plugins.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Plugins.pm b/Koha/Plugins.pm index 6379e43db0..cd08953515 100644 --- a/Koha/Plugins.pm +++ b/Koha/Plugins.pm @@ -148,7 +148,7 @@ sub get_enabled_plugins { sub _verbose { my $class = shift; # Return false when running unit tests - return exists $ENV{_} && $ENV{_} =~ /\/prove(\s|$)|\.t$/ ? 0 : 1; + return exists $ENV{_} && $ENV{_} =~ /\/prove(\s|$)|\/koha-qa\.pl$|\.t$/ ? 0 : 1; } =head2 feature_enabled -- 2.39.5