Mailing List Archive

rt branch, 4.4/skip-gpg-tests-option, created. rt-4.4.4-110-ge15909a7fc
The branch, 4.4/skip-gpg-tests-option has been created
at e15909a7fcf050459f9b45db18b0e761f0e6880d (commit)

- Log -----------------------------------------------------------------
commit e15909a7fcf050459f9b45db18b0e761f0e6880d
Author: Jim Brandt <jbrandt@bestpractical.com>
Date: Thu Jun 25 15:06:05 2020 -0400

Provide an option to skip GnuPG tests

The current check runs if GnuPG::Interface is found, but
there are cases where gpg 1.4 isn't available and that
version is currently required. Provide an explicit option
to skip GnuPG tests for this case.

diff --git a/Dockerfile b/Dockerfile
index 98bafcd6c0..d77111ec6f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,4 +9,7 @@ ENV RT_DBA_PASSWORD password
ENV RT_TEST_DB_HOST=172.17.0.2
ENV RT_TEST_RT_HOST=172.17.0.3

+# Skip gpg tests until we update to gpg 2.2
+ENV SKIP_GPG_TESTS=1
+
CMD tail -f /dev/null
diff --git a/lib/RT/Test/GnuPG.pm b/lib/RT/Test/GnuPG.pm
index d50c2cada1..e4173d15b7 100644
--- a/lib/RT/Test/GnuPG.pm
+++ b/lib/RT/Test/GnuPG.pm
@@ -64,6 +64,8 @@ sub import {
my %args = @_;
my $t = $class->builder;

+ RT::Test::plan( skip_all => 'GnuPG required.' )
+ if $ENV{'SKIP_GPG_TESTS'};
RT::Test::plan( skip_all => 'GnuPG required.' )
unless GnuPG::Interface->require;
RT::Test::plan( skip_all => 'gpg executable is required.' )

-----------------------------------------------------------------------
_______________________________________________
rt-commit mailing list
rt-commit@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit