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>
This commit is contained in:
Ross Burton
2016-07-21 18:15:47 +01:00
committed by Richard Purdie
parent 5218c24c8b
commit 1b4dc787b8

View File

@@ -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