From: Ross Burton Date: Thu, 21 Jul 2016 17:15:47 +0000 (+0100) Subject: oeqa/selftest/signing: check that we have GPG in setup X-Git-Tag: uninative-1.3~174 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=6eb6fde2567a2692afccb7ee0546b2c992c168aa;p=openembedded-core.git oeqa/selftest/signing: check that we have GPG in setup Signed-off-by: Ross Burton --- 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