File: autopkgtest.patch

package info (click to toggle)
libfile-mimeinfo-perl 0.29-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 336 kB
  • sloc: perl: 1,073; xml: 23; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 531 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Test installed script when run under autopkgtest
Origin: vendor
Forwarded: not-needed
Author: Salvatore Bonaccorso <carnil@debian.org>
Last-Update: 2018-08-06

--- a/t/11mimeinfo.t
+++ b/t/11mimeinfo.t
@@ -9,7 +9,7 @@ use FindBin qw($Bin);
 eval "use IO::Scalar";
 my $have_io_scalar = !$@;
 
-my $mimetype_file = File::Spec->catfile($Bin, '..', 'mimetype');
+my $mimetype_file = $ENV{ADTTMP} ? '/usr/bin/mimetype' : File::Spec->catfile($Bin, '..', 'mimetype');
 
 my %tests = (
     'mimeopen', 'application/x-perl',