1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Description: asp-perl is in a different place when tests are run under autopkgtest
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2018-04-01
--- a/t/asp-perl1.t
+++ b/t/asp-perl1.t
@@ -11,4 +11,5 @@
@ARGV = ('-b', '-f', 'asp-perl/asp.conf', 'asp-perl/ok.inc');
use lib qw(../blib/lib ../lib);
-do "../asp-perl";
+my $bindir = $ENV{ADTTMP} ? '/usr/bin' : '../';
+do "$bindir/asp-perl";
--- a/t/asp-perl2.t
+++ b/t/asp-perl2.t
@@ -8,4 +8,5 @@
@ARGV = ('-b', 'ok.inc');
use lib qw(../../blib/lib ../../lib);
-do "../../asp-perl";
+my $bindir = $ENV{ADTTMP} ? '/usr/bin' : '../../';
+do "$bindir/asp-perl";
|