Test installed script when run under autopkgtest

Origin: vendor
Forwarded: not-needed
Last-Update: 2018-08-06

Gbp-Pq: Name autopkgtest.patch
This commit is contained in:
Salvatore Bonaccorso 2022-05-14 00:51:01 +08:00 committed by openKylinBot
parent e4a701b3a3
commit cf363ac9de
1 changed files with 1 additions and 1 deletions

View File

@ -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',