debian/patches/autopkgtest.patch
raw| 1 | Description: adjust path when run under autopkgtest |
| 2 | Origin: vendor |
| 3 | Forwarded: not-needed |
| 4 | Author: gregor herrmann <[email protected]> |
| 5 | Last-Update: 2015-12-06 |
| 6 | |
| 7 | --- a/t/autosearch.t |
| 8 | +++ b/t/autosearch.t |
| 9 | @@ -7,7 +7,7 @@ |
| 10 | |
| 11 | use strict; |
| 12 | |
| 13 | -my $sProg = catfile('blib', 'script', 'AutoSearch'); |
| 14 | +my $sProg = $ENV{AUTOPKGTEST_TMP} ? '/usr/bin/AutoSearch' : catfile('blib', 'script', 'AutoSearch'); |
| 15 | my $iWIN32 = ($^O =~ m!win32!i); |
| 16 | |
| 17 | file_exists_ok($sProg, "$sProg exists"); |