summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/signing.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/selftest/signing.py')
-rw-r--r--meta/lib/oeqa/selftest/signing.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/meta/lib/oeqa/selftest/signing.py b/meta/lib/oeqa/selftest/signing.py
index 02e5f5a..9f501a5 100644
--- a/meta/lib/oeqa/selftest/signing.py
+++ b/meta/lib/oeqa/selftest/signing.py
@@ -104,13 +104,7 @@ class Signing(oeSelfTest):
104 self.add_command_to_tearDown('bitbake -c clean %s' % test_recipe) 104 self.add_command_to_tearDown('bitbake -c clean %s' % test_recipe)
105 self.add_command_to_tearDown('rm -rf %s' % sstatedir) 105 self.add_command_to_tearDown('rm -rf %s' % sstatedir)
106 106
107 # Determine the pub key signature 107 feature = 'SSTATE_SIG_KEY ?= "testuser"\n'
108 ret = runCmd('gpg --homedir %s --list-keys' % self.gpg_dir)
109 pub_key = re.search(r'^pub\s+\S+/(\S+)\s+', ret.output, re.M)
110 self.assertIsNotNone(pub_key, 'Failed to determine the public key signature.')
111 pub_key = pub_key.group(1)
112
113 feature = 'SSTATE_SIG_KEY ?= "%s"\n' % pub_key
114 feature += 'SSTATE_SIG_PASSPHRASE ?= "test123"\n' 108 feature += 'SSTATE_SIG_PASSPHRASE ?= "test123"\n'
115 feature += 'SSTATE_VERIFY_SIG ?= "1"\n' 109 feature += 'SSTATE_VERIFY_SIG ?= "1"\n'
116 feature += 'GPG_PATH = "%s"\n' % self.gpg_dir 110 feature += 'GPG_PATH = "%s"\n' % self.gpg_dir