Skip to content

Commit

Permalink
Another place to use the configured location of gpg binary
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Apr 9, 2015
1 parent 8602688 commit 053ab2b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions framework/Crypt/test/Horde/Crypt/PgpKeyserverTest.php
Expand Up @@ -15,13 +15,21 @@ class Horde_Crypt_PgpKeyserverTest extends Horde_Test_Case

protected function setUp()
{
if (!is_executable('/usr/bin/gpg')) {
$this->markTestSkipped('GPG binary not found at /usr/bin/gpg.');
$c = self::getConfig('CRYPTPGP_TEST_CONFIG', __DIR__);
$gnupg = isset($c['gnupg'])
? $c['gnupg']
: '/usr/bin/gpg';

if (!is_executable($gnupg)) {
$this->markTestSkipped(sprintf(
'GPG binary not found at %s.',
$gnupg
));
}

$this->_ks = new Horde_Crypt_Pgp_Keyserver(
Horde_Crypt::factory('Pgp', array(
'program' => '/usr/bin/gpg'
'program' => $gnupg
))
);
}
Expand Down

0 comments on commit 053ab2b

Please sign in to comment.