summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-07-21 18:15:47 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-26 08:56:31 +0100
commit1b4dc787b88551a9c56f71f3f694e83bd0602ace (patch)
treefc4032e0f9985ed23aa30a882b657c17210aacd1 /meta/lib
parent5218c24c8be78760bafcaf29969f73fe3e2f5d01 (diff)
downloadpoky-1b4dc787b88551a9c56f71f3f694e83bd0602ace.tar.gz
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>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/signing.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/signing.py b/meta/lib/oeqa/selftest/signing.py
index beafd63794..4c12d6d940 100644
--- a/meta/lib/oeqa/selftest/signing.py
+++ b/meta/lib/oeqa/selftest/signing.py
@@ -17,6 +17,10 @@ class Signing(oeSelfTest):
17 17
18 @classmethod 18 @classmethod
19 def setUpClass(cls): 19 def setUpClass(cls):
20 # Check that we can find the gpg binary and fail early if we can't
21 if not shutil.which("gpg"):
22 raise AssertionError("This test needs GnuPG")
23
20 cls.gpg_home_dir = tempfile.TemporaryDirectory(prefix="oeqa-signing-") 24 cls.gpg_home_dir = tempfile.TemporaryDirectory(prefix="oeqa-signing-")
21 cls.gpg_dir = cls.gpg_home_dir.name 25 cls.gpg_dir = cls.gpg_home_dir.name
22 26