Bug 26265: (QA follow-up) Remove g option from regex, add few dirs master
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 24 Aug 2020 08:03:48 +0000 (08:03 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 24 Aug 2020 10:30:53 +0000 (12:30 +0200)
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 <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

xt/check_makefile.t

index 23a8bf3..458f195 100755 (executable)
@@ -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;
 }