File: autopkgtest.patch

package info (click to toggle)
libwww-search-perl 2.51.80-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,748 kB
  • sloc: perl: 10,997; sh: 127; makefile: 16
file content (17 lines) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: adjust path when run under autopkgtest
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2015-12-06

--- a/t/autosearch.t
+++ b/t/autosearch.t
@@ -7,7 +7,7 @@
 
 use strict;
 
-my $sProg = catfile('blib', 'script', 'AutoSearch');
+my $sProg = $ENV{ADTTMP} ? '/usr/bin/AutoSearch' : catfile('blib', 'script', 'AutoSearch');
 my $iWIN32 = ($^O =~ m!win32!i);
 
 file_exists_ok($sProg, "$sProg exists");