summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_openpgp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_openpgp.py b/tests/test_openpgp.py
index e34f973..ce62add 100644
--- a/tests/test_openpgp.py
+++ b/tests/test_openpgp.py
@@ -25,6 +25,7 @@ from gemato.exceptions import (
)
from gemato.manifest import ManifestFile
from gemato.openpgp import (
+ GNUPG,
OpenPGPEnvironment,
OpenPGPSystemEnvironment,
)
@@ -340,7 +341,7 @@ class OpenPGPMockedSystemEnvironment(OpenPGPSystemEnvironment):
def import_key(self, keyfile):
exitst, out, err = self._spawn_gpg(
- ['gpg', '--batch', '--import'], keyfile.read())
+ [GNUPG, '--batch', '--import'], keyfile.read())
if exitst != 0:
raise OpenPGPKeyImportError(err.decode('utf8'))