From 42994f5848700cb4424f72c88133db12cdacd3ac 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 Content-Type: text/plain; charset=utf-8 Extending the regex in Plugins::_verbose. Test plan: Run qa tools on patch set. --- Koha/Plugins.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Plugins.pm b/Koha/Plugins.pm index 38134cc472..4a39844642 100644 --- a/Koha/Plugins.pm +++ b/Koha/Plugins.pm @@ -141,7 +141,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.30.2