From 9b9ae27a0e3c5acfb6093c7977a001fcf4857033 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 --- 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