summaryrefslogtreecommitdiffstats
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-25 23:47:02 +0100
commit6eb6fde2567a2692afccb7ee0546b2c992c168aa (patch)
tree9a6771dcf936909d9986ad9c018bf44e09adc263
parentd4a5b5d11c6d7d5aba5f2eb88db091c1b98ef87c (diff)
downloadopenembedded-core-contrib-6eb6fde2567a2692afccb7ee0546b2c992c168aa.tar.gz
openembedded-core-contrib-6eb6fde2567a2692afccb7ee0546b2c992c168aa.tar.bz2
openembedded-core-contrib-6eb6fde2567a2692afccb7ee0546b2c992c168aa.zip
oeqa/selftest/signing: check that we have GPG in setup
Signed-off-by: Ross Burton <ross.burton@intel.com>
-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):
@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