diff options
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/lib/oeqa/selftest/signing.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/signing.py b/meta/lib/oeqa/selftest/signing.py index 606bfd3e99..3b5c2da0e0 100644 --- a/meta/lib/oeqa/selftest/signing.py +++ b/meta/lib/oeqa/selftest/signing.py | |||
| @@ -21,14 +21,17 @@ class Signing(oeSelfTest): | |||
| 21 | if not shutil.which("gpg"): | 21 | if not shutil.which("gpg"): |
| 22 | raise AssertionError("This test needs GnuPG") | 22 | raise AssertionError("This test needs GnuPG") |
| 23 | 23 | ||
| 24 | cls.gpg_home_dir = tempfile.TemporaryDirectory(prefix="oeqa-signing-") | 24 | cls.gpg_dir = tempfile.mkdtemp(prefix="oeqa-signing-") |
| 25 | cls.gpg_dir = cls.gpg_home_dir.name | ||
| 26 | 25 | ||
| 27 | cls.pub_key_path = os.path.join(cls.testlayer_path, 'files', 'signing', "key.pub") | 26 | cls.pub_key_path = os.path.join(cls.testlayer_path, 'files', 'signing', "key.pub") |
| 28 | cls.secret_key_path = os.path.join(cls.testlayer_path, 'files', 'signing', "key.secret") | 27 | cls.secret_key_path = os.path.join(cls.testlayer_path, 'files', 'signing', "key.secret") |
| 29 | 28 | ||
| 30 | runCmd('gpg --homedir %s --import %s %s' % (cls.gpg_dir, cls.pub_key_path, cls.secret_key_path)) | 29 | runCmd('gpg --homedir %s --import %s %s' % (cls.gpg_dir, cls.pub_key_path, cls.secret_key_path)) |
| 31 | 30 | ||
| 31 | @classmethod | ||
| 32 | def tearDownClass(cls): | ||
| 33 | shutil.rmtree(cls.gpg_dir, ignore_errors=True) | ||
| 34 | |||
| 32 | @testcase(1362) | 35 | @testcase(1362) |
| 33 | def test_signing_packages(self): | 36 | def test_signing_packages(self): |
| 34 | """ | 37 | """ |
