projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT 4.0.13
[freeside.git]
/
rt
/
lib
/
RT
/
Test
/
GnuPG.pm
diff --git
a/rt/lib/RT/Test/GnuPG.pm
b/rt/lib/RT/Test/GnuPG.pm
index
6cebb77
..
ec44672
100644
(file)
--- a/
rt/lib/RT/Test/GnuPG.pm
+++ b/
rt/lib/RT/Test/GnuPG.pm
@@
-2,7
+2,7
@@
#
# COPYRIGHT:
#
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
2
Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-201
3
Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
@@
-48,6
+48,7
@@
package RT::Test::GnuPG;
use strict;
package RT::Test::GnuPG;
use strict;
+use warnings;
use Test::More;
use base qw(RT::Test);
use File::Temp qw(tempdir);
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');
$t->plan( skip_all => 'gpg executable is required.' )
unless RT::Test->find_executable('gpg');
- require RT::Crypt::GnuPG;
$class->SUPER::import(%args);
$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'};
RT::Test::diag "GnuPG --homedir " . RT->Config->Get('GnuPGOptions')->{'homedir'};