diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2017-08-15 14:34:57 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-16 00:03:16 +0100 |
commit | 188feb233ab3549af46cf530c0ac31f0a66ac074 (patch) | |
tree | c480af2b4eb431b16126e057dc36733b13eb29ec /meta-selftest/lib/oeqa | |
parent | 14fc08e3b031784456575bff0aaa45dff63826ed (diff) | |
download | poky-188feb233ab3549af46cf530c0ac31f0a66ac074.tar.gz |
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>
Diffstat (limited to 'meta-selftest/lib/oeqa')
-rw-r--r-- | meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py b/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py index 68e56f2c5e..6742e8c080 100644 --- a/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py +++ b/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py | |||
@@ -36,7 +36,9 @@ class DnfSelftest(DnfTest): | |||
36 | self.tc.target.copyTo(temp_file, "/etc/yum.repos.d/oe-remote-repo.repo") | 36 | self.tc.target.copyTo(temp_file, "/etc/yum.repos.d/oe-remote-repo.repo") |
37 | 37 | ||
38 | import re | 38 | import re |
39 | output_makecache = self.dnf('makecache') | 39 | # Use '-y' for non-interactive mode: automatically import the feed signing key |
40 | output_makecache = self.dnf('-y makecache') | ||
41 | 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)) | ||
40 | self.assertTrue(re.match(r".*Metadata cache created", output_makecache, re.DOTALL) is not None, msg = "dnf makecache failed: %s" %(output_makecache)) | 42 | self.assertTrue(re.match(r".*Metadata cache created", output_makecache, re.DOTALL) is not None, msg = "dnf makecache failed: %s" %(output_makecache)) |
41 | 43 | ||
42 | output_repoinfo = self.dnf('repoinfo') | 44 | output_repoinfo = self.dnf('repoinfo') |