From cf363ac9de20199119d1e889436f7ef2c553eb38 Mon Sep 17 00:00:00 2001 From: Salvatore Bonaccorso Date: Sat, 14 May 2022 00:51:01 +0800 Subject: [PATCH] Test installed script when run under autopkgtest Origin: vendor Forwarded: not-needed Last-Update: 2018-08-06 Gbp-Pq: Name autopkgtest.patch --- t/11mimeinfo.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/11mimeinfo.t b/t/11mimeinfo.t index f8b4c98..61f3b0e 100644 --- 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',