From f6dcfd5c6fe1338b74d502284cd524549b6edde9 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sun, 30 Aug 2020 16:04:05 +0200 Subject: test_openpgp: Fix system env tests to respect GNUPG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- tests/test_openpgp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')) -- cgit v1.2.3