diff options
author | Guillem Jover <guillem@debian.org> | 2017-10-17 04:07:19 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2017-10-17 04:25:35 +0200 |
commit | e92108eac0c3acb33758bd5bdf1f0d25f1ee498e (patch) | |
tree | eedd7e2fb55ea194d21e6a7dfe2ead46e03902e0 /scripts/t | |
parent | 3a9c75bdda65c2a87fa802d7f1b10e578a49d0c0 (diff) | |
download | dpkg-e92108eac0c3acb33758bd5bdf1f0d25f1ee498e.tar.gz |
scripts/t: Skip Dpkg::OpenPGP test if gpg is not present
Diffstat (limited to 'scripts/t')
-rw-r--r-- | scripts/t/Dpkg_OpenPGP.t | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/t/Dpkg_OpenPGP.t b/scripts/t/Dpkg_OpenPGP.t index ee78da6d3..84b8401f3 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); |