Skip GPG test if gpg install fails. Fixes debci

See https://bugs.debian.org/922265
This commit is contained in:
Xavier Guimard 2019-02-14 16:39:27 +01:00
parent 9274c54f20
commit 77ccc9bbc3

View File

@ -42,7 +42,10 @@ SKIP: {
else {
run( [ 'gpg', '--clearsign', '--homedir', 't/gpghome' ],
\$token, \$out, \$err, IPC::Run::timeout(10) );
ok( $? == 0, "Succeed to sign" );
unless ( $? == 0 ) {
skip "Local GPG signature fails, aborting", 2;
}
pass("Succeed to sign");
}
$query .= '&' . build_urlencoded( password => $out );
ok(