mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
dnf: expand dnf selftest to test signed package feeds
[YOCTO #11209] (From OE-Core rev: 4d65421f381fc69397d7c61ba76488775e83e043) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
14fc08e3b0
commit
188feb233a
1
meta-selftest/files/signing/key.passphrase
Normal file
1
meta-selftest/files/signing/key.passphrase
Normal file
@@ -0,0 +1 @@
|
||||
test123
|
||||
@@ -36,7 +36,9 @@ class DnfSelftest(DnfTest):
|
||||
self.tc.target.copyTo(temp_file, "/etc/yum.repos.d/oe-remote-repo.repo")
|
||||
|
||||
import re
|
||||
output_makecache = self.dnf('makecache')
|
||||
# Use '-y' for non-interactive mode: automatically import the feed signing key
|
||||
output_makecache = self.dnf('-y makecache')
|
||||
self.assertTrue(re.match(r".*Failed to synchronize cache", output_makecache, re.DOTALL) is None, msg = "dnf makecache failed to synchronize repo: %s" %(output_makecache))
|
||||
self.assertTrue(re.match(r".*Metadata cache created", output_makecache, re.DOTALL) is not None, msg = "dnf makecache failed: %s" %(output_makecache))
|
||||
|
||||
output_repoinfo = self.dnf('repoinfo')
|
||||
|
||||
Reference in New Issue
Block a user