[gnome-continuous-yocto/gnomeostree-3.28-rocko: 1575/8267] oeqa/selftest/signing: check that we have GPG in setup
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 1575/8267] oeqa/selftest/signing: check that we have GPG in setup
- Date: Sat, 16 Dec 2017 22:01:10 +0000 (UTC)
commit 1b4dc787b88551a9c56f71f3f694e83bd0602ace
Author: Ross Burton <ross burton intel com>
Date: Thu Jul 21 18:15:47 2016 +0100
oeqa/selftest/signing: check that we have GPG in setup
(From OE-Core rev: 6eb6fde2567a2692afccb7ee0546b2c992c168aa)
Signed-off-by: Ross Burton <ross burton intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
meta/lib/oeqa/selftest/signing.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/meta/lib/oeqa/selftest/signing.py b/meta/lib/oeqa/selftest/signing.py
index beafd63..4c12d6d 100644
--- a/meta/lib/oeqa/selftest/signing.py
+++ b/meta/lib/oeqa/selftest/signing.py
@@ -17,6 +17,10 @@ class Signing(oeSelfTest):
@classmethod
def setUpClass(cls):
+ # Check that we can find the gpg binary and fail early if we can't
+ if not shutil.which("gpg"):
+ raise AssertionError("This test needs GnuPG")
+
cls.gpg_home_dir = tempfile.TemporaryDirectory(prefix="oeqa-signing-")
cls.gpg_dir = cls.gpg_home_dir.name
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]