From 592b7cbc561af91fed8e7d02b869ebe2f910b585 Mon Sep 17 00:00:00 2001 From: Bruno Wagner Goncalves Date: Thu, 21 Aug 2014 15:05:33 -0300 Subject: Added fallback in case the gpg binary is not found on the PATH --- mail/src/leap/mail/smtp/tests/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mail') diff --git a/mail/src/leap/mail/smtp/tests/__init__.py b/mail/src/leap/mail/smtp/tests/__init__.py index 5dc7465..dc24293 100644 --- a/mail/src/leap/mail/smtp/tests/__init__.py +++ b/mail/src/leap/mail/smtp/tests/__init__.py @@ -42,8 +42,8 @@ from leap.common.testing.basetest import BaseLeapTest def _find_gpg(): gpg_path = distutils.spawn.find_executable('gpg') - return os.path.realpath(gpg_path) - + return os.path.realpath(gpg_path) if gpg_path is not None else "/usr/bin/gpg" + class TestCaseWithKeyManager(BaseLeapTest): -- cgit v1.2.3