diff options
| -rw-r--r-- | meta/lib/oeqa/selftest/signing.py | 4 |
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): | |||
| 17 | 17 | ||
| 18 | @classmethod | 18 | @classmethod |
| 19 | def setUpClass(cls): | 19 | def setUpClass(cls): |
| 20 | # Check that we can find the gpg binary and fail early if we can't | ||
| 21 | if not shutil.which("gpg"): | ||
| 22 | raise AssertionError("This test needs GnuPG") | ||
| 23 | |||
| 20 | cls.gpg_home_dir = tempfile.TemporaryDirectory(prefix="oeqa-signing-") | 24 | cls.gpg_home_dir = tempfile.TemporaryDirectory(prefix="oeqa-signing-") |
| 21 | cls.gpg_dir = cls.gpg_home_dir.name | 25 | cls.gpg_dir = cls.gpg_home_dir.name |
| 22 | 26 | ||
