From 01bee142e6e0b997ddfb000a9623082b74bbe9ab 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 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 Signed-off-by: Jonathan Druart --- xt/check_makefile.t | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/xt/check_makefile.t b/xt/check_makefile.t index 23a8bf3..458f195 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; } -- 1.7.2.5