X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FTest%2FGnuPG.pm;h=95c21f8ae03a340bc603d59aa248e97559ddbce5;hb=b8988e1d3ac75af63c85e8563e57701030315a9e;hp=6cebb775bccc5a63a928d8cf845ef44a47616202;hpb=6587f6ba7d047ddc1686c080090afe7d53365bd4;p=freeside.git diff --git a/rt/lib/RT/Test/GnuPG.pm b/rt/lib/RT/Test/GnuPG.pm index 6cebb775b..95c21f8ae 100644 --- a/rt/lib/RT/Test/GnuPG.pm +++ b/rt/lib/RT/Test/GnuPG.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -48,6 +48,7 @@ package RT::Test::GnuPG; use strict; +use warnings; use Test::More; use base qw(RT::Test); use File::Temp qw(tempdir); @@ -68,8 +69,10 @@ sub import { $t->plan( skip_all => 'gpg executable is required.' ) unless RT::Test->find_executable('gpg'); - require RT::Crypt::GnuPG; $class->SUPER::import(%args); + require RT::Crypt::GnuPG; + return $class->export_to_level(1) + if $^C; RT::Test::diag "GnuPG --homedir " . RT->Config->Get('GnuPGOptions')->{'homedir'};