summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-08-30 16:04:05 +0200
committerMichał Górny <mgorny@gentoo.org>2020-08-30 16:04:05 +0200
commitf6dcfd5c6fe1338b74d502284cd524549b6edde9 (patch)
treec9cb8480f4ca1a082898e5fc9be43c76e61d6666
parent9f3082f44ee4023f772f36bb8e5b869a08252fe6 (diff)
downloadgemato-f6dcfd5c6fe1338b74d502284cd524549b6edde9.tar.gz
test_openpgp: Fix system env tests to respect GNUPG
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-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'))