From 8260a1caa4be759a8b8c4a4cf1543df8a6aaa645 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 --- Koha/Plugins.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Plugins.pm b/Koha/Plugins.pm index 6379e43db07..cd089535154 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.30.2