Skip to content

Commit 2f577af

Browse files
committed
Minor search-path related fixes for t/buildpkg.t
1 parent 8ea6937 commit 2f577af

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

debian/changelog

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ dh-dist-zilla (1.4.1) UNRELEASED; urgency=medium
22

33
* Use the Debian Perl Team's autopkgtest helpers.
44
+ Drop debian/tests/control, no more needed.
5+
+ Minor search-path related fixes for t/buildpkg.t.
56
* Skip t/syntax.t for autopkgtest, pkg-perl-autopkgtest does it better.
67

78
-- Axel Beckert <abe@debian.org> Sat, 22 Feb 2020 15:43:46 +0100

t/buildpkg.t

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ my $pkgname = 'libexample-dz-perl';
1111
my $pkgver = '1.0';
1212
my $debrev = '1';
1313
my @dbpparm = (qw(-uc -us), $ENV{AUTOPKGTEST_TMP} ? () : qw(-d));
14+
my $path = $ENV{AUTOPKGTEST_TMP} ? '/usr/bin' : '.';
1415

1516
chdir("t/$pkgname");
1617
$ENV{HOME} = '.';
@@ -22,11 +23,11 @@ unless ($ENV{AUTOPKGTEST_TMP}) {
2223
}
2324

2425
# dh_dzil_clean
25-
run_ok('dh_dzil_clean', [],
26+
run_ok("$path/dh_dzil_clean", [],
2627
"dh_dzil_clean runs without error");
2728

2829
# dh_dist_zilla_origtar
29-
run_ok('dh_dist_zilla_origtar', [],
30+
run_ok("$path/dh_dist_zilla_origtar", [],
3031
"dh_dist_zilla_origtar runs without error");
3132
is(last_script_stdout(), '',
3233
'dh_dist_zilla_origtar runs without output on STDOUT');

0 commit comments

Comments
 (0)