Package: liburi-find-perl / 20160806-3

autopkgtest.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: change path to script when run under autopkgtest
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2017-08-01

--- a/t/urifind/find.t
+++ b/t/urifind/find.t
@@ -8,6 +8,7 @@
 ok(my $ifile = File::Spec->catfile(qw(t urifind sciencenews)),
     "Test file found");
 my $urifind = File::Spec->catfile(qw(blib script urifind));
+$urifind = '/usr/bin/urifind' if $ENV{AUTOPKGTEST_TMP};
 my @data = `$^X $urifind $ifile`;
 
 is(@data, 13, "Correct number of elements");