File: autopkgtest.patch

package info (click to toggle)
libwww-mechanize-perl 2.20-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,080 kB
  • sloc: perl: 4,623; makefile: 6
file content (26 lines) | stat: -rw-r--r-- 660 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: update path to mech-dump script during autopkgtest
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2023-05-29

--- a/t/mech-dump/mech-dump.t
+++ b/t/mech-dump/mech-dump.t
@@ -18,6 +18,7 @@
 if ( $^O eq 'VMS' ) {
     $exe = qq[mcr $^X -Ilib $exe];
 }
+$exe = '/usr/bin/mech-dump' if $ENV{AUTOPKGTEST_TMP};
 
 my $perl;
 $perl = $1 if $^X =~ /^(.+)$/;
--- a/t/mech-dump/file_not_found.t
+++ b/t/mech-dump/file_not_found.t
@@ -19,6 +19,7 @@
 if ( $^O eq 'VMS' ) {
     $exe = qq[mcr $^X -Ilib $exe];
 }
+$exe = '/usr/bin/mech-dump' if $ENV{AUTOPKGTEST_TMP};
 
 my $perl;
 $perl = $1 if $^X =~ /^(.+)$/;