From 782749b902cdad9e6495ad3fc203db7151c95919 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 24 Aug 2020 08:03:48 +0000 Subject: [PATCH] Bug 26265: (QA follow-up) Remove g option from regex, add few dirs Content-Type: text/plain; charset=utf-8 Adding .git. Using a regex. If we make it a bit smarter, we do not need most dirs listed. Test plan: Run the test again Signed-off-by: Marcel de Rooy --- xt/check_makefile.t | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/xt/check_makefile.t b/xt/check_makefile.t index 23a8bf3b05..458f19520c 100755 --- a/xt/check_makefile.t +++ b/xt/check_makefile.t @@ -30,12 +30,8 @@ my $makefile = read_file("$curdir/Makefile.PL"); my @missing; for my $d ( sort @dirs ) { chomp $d; - next if $d eq './Koha'; - next if $d eq './C4'; - next if $d eq './koha-tmpl'; - next if $d eq './etc'; - next if $d eq './debian'; - next if $makefile =~ m|'$d'|gxms; + next if $d =~ /\.\/(debian|\.git)$/; + next if $makefile =~ m{'$d('|\/)}xms; push @missing, $d; } -- 2.11.0