[strip-nondeterminism] 01/01: t/binaries.t: Don't make tests rely on Debian::Debhelper::Dh_Lib.

Chris Lamb chris at chris-lamb.co.uk
Sun Nov 13 11:30:45 UTC 2016


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository strip-nondeterminism.

commit b9d5b069bd92245791a11045d50683a2d23efe20
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Nov 13 11:30:18 2016 +0000

    t/binaries.t: Don't make tests rely on Debian::Debhelper::Dh_Lib.
---
 t/binaries.t | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/t/binaries.t b/t/binaries.t
index 694f46c..b68e4a0 100644
--- a/t/binaries.t
+++ b/t/binaries.t
@@ -26,9 +26,12 @@ use Test::More;
 
 my %BINARIES = (
 	'bin/strip-nondeterminism --help' => 0,
-	'bin/dh_strip_nondeterminism --help' => 1,
 );
 
+if (eval{require Debian::Debhelper::Dh_Lib}) {
+	$BINARIES{'bin/dh_strip_nondeterminism --help'} = 1;
+}
+
 plan tests => scalar keys %BINARIES;
 
 foreach my $cmd (sort keys %BINARIES) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/strip-nondeterminism.git



More information about the Reproducible-commits mailing list