Bug 16174: icondirectories.t broken due to bug 15527
authorTomas Cohen Arazi <tomascohen@unc.edu.ar>
Wed, 30 Mar 2016 19:11:19 +0000 (16:11 -0300)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Fri, 1 Apr 2016 19:11:33 +0000 (19:11 +0000)
This patch fixes it.

To test:
- Run
  $ prove xt/author/icondirectories.t
=> FAIL: Tests fail:
   Failed test 'opac_icon_directory: koha-tmpl/opac-tmpl/xslt/itemtypeimg exists'
- Apply the patch
- Run
  $ prove xt/author/icondirectories.t
=> SUCCESS: Tests pass and don't raise warnings.
- Sign off

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>

xt/author/icondirectories.t

index e5b0039..37f3309 100644 (file)
@@ -42,7 +42,7 @@ my $staff_dir = 'koha-tmpl/intranet-tmpl';
 
 # Find OPAC themes
 opendir ( my $dh, $opac_dir ) or die "can't opendir $opac_dir: $!";
-my @opac_themes = grep { not /^\.|lib|js/ } readdir($dh);
+my @opac_themes = grep { not /^\.|lib|js|xslt/ } readdir($dh);
 close $dh;
 
 # Find STAFF themes