[oe-commits] [openembedded-core] 50/60: oeqa/selftest/signing: check that we have GPG in setup

git at git.openembedded.org git at git.openembedded.org
Mon Jul 25 08:59:17 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 6b6fff41b5bf2a12c9531f62c0f9d8a81875fe2f
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Thu Jul 21 18:15:47 2016 +0100

    oeqa/selftest/signing: check that we have GPG in setup
    
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/lib/oeqa/selftest/signing.py | 4 ++++
 1 file changed, 4 insertions(+)

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
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list