File: autopkgtest.patch

package info (click to toggle)
libfile-find-object-rule-perl 0.0313-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 328 kB
  • sloc: perl: 1,311; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 469 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: fix path to installed script when run under autopkgtest
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2019-07-26

--- a/t/findorule.t
+++ b/t/findorule.t
@@ -77,6 +77,7 @@
     my $expr = shift;
     my $script =
         File::Spec->catfile( File::Spec->curdir(), "bin", "findorule" );
+    $script = '/usr/bin/findorule' if $ENV{AUTOPKGTEST_TMP};
 
     [ sort split /\n/, `$^X -Mblib $script $expr` ];
 }