From 13995c8a20e7682cfaeb4bfda693acccc8cf6a54 Mon Sep 17 00:00:00 2001
From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
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 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.30.2