mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
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:
committed by
Richard Purdie
parent
5218c24c8b
commit
1b4dc787b8
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user