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

guillem pushed a commit to branch sid
in repository dpkg.

commit 5c193ca42bd5e747f93fceb14dc26b3670e216ec
Author: Guillem Jover <guil...@debian.org>
Date:   Tue Oct 17 04:07:19 2017 +0200

    scripts/t: Skip Dpkg::OpenPGP test if gpg is not present
---
 debian/changelog         |  3 ++-
 scripts/t/Dpkg_OpenPGP.t | 12 +++++++-----
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 44df7db..71ac719 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 dpkg (1.19.0.1) UNRELEASED; urgency=medium
 
-  *
+  * Test suite:
+    - Skip Dpkg::OpenPGP test if gpg is not present.
 
  -- Guillem Jover <guil...@debian.org>  Tue, 17 Oct 2017 04:12:45 +0200
 
diff --git a/scripts/t/Dpkg_OpenPGP.t b/scripts/t/Dpkg_OpenPGP.t
index ee78da6..84b8401 100644
--- a/scripts/t/Dpkg_OpenPGP.t
+++ b/scripts/t/Dpkg_OpenPGP.t
@@ -16,16 +16,18 @@
 use strict;
 use warnings;
 
-use Test::More tests => 3;
-use Test::Dpkg qw(:paths);
+use Test::More;
+use Test::Dpkg qw(:paths :needs);
 
 use File::Compare;
 
 use Dpkg::ErrorHandling;
 
-BEGIN {
-    use_ok('Dpkg::OpenPGP');
-}
+test_needs_command('gpg');
+
+plan tests => 3;
+
+use_ok('Dpkg::OpenPGP');
 
 report_options(quiet_warnings => 1);
 

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

Reply via email to