]> sipb.mit.edu Git - ikiwiki.git/commitdiff
avoid running this test if File:MimeInfo is not installed
authorJoey Hess <joey@kitenet.net>
Sat, 25 Jan 2014 21:08:22 +0000 (17:08 -0400)
committerJoey Hess <joey@kitenet.net>
Sat, 25 Jan 2014 21:08:22 +0000 (17:08 -0400)
it's needed to get mime types in the feed

t/podcast.t

index 1052aea70f005ef13383dab4050b73fc46ba991d..f036c3113e4a1620b00dd50541be4a0a8956c18e 100755 (executable)
@@ -3,10 +3,10 @@ use warnings;
 use strict;
 
 BEGIN {
 use strict;
 
 BEGIN {
-       eval q{use XML::Feed; use HTML::Parser; use HTML::LinkExtor};
+       eval q{use XML::Feed; use HTML::Parser; use HTML::LinkExtor; use File::MimeInfo};
        if ($@) {
                eval q{use Test::More skip_all =>
        if ($@) {
                eval q{use Test::More skip_all =>
-                       "XML::Feed and/or HTML::Parser not available"};
+                       "XML::Feed and/or HTML::Parser or File::MimeInfo not available"};
        }
        else {
                eval q{use Test::More tests => 136};
        }
        else {
                eval q{use Test::More tests => 136};