diff options
Diffstat (limited to 'meta-selftest/lib')
-rw-r--r-- | meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py b/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py index 6742e8c080..81c50ed97b 100644 --- a/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py +++ b/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py | |||
@@ -37,11 +37,11 @@ class DnfSelftest(DnfTest): | |||
37 | 37 | ||
38 | import re | 38 | import re |
39 | # Use '-y' for non-interactive mode: automatically import the feed signing key | 39 | # Use '-y' for non-interactive mode: automatically import the feed signing key |
40 | output_makecache = self.dnf('-y makecache') | 40 | output_makecache = self.dnf('-vy 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)) | 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)) |
42 | 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)) |
43 | 43 | ||
44 | output_repoinfo = self.dnf('repoinfo') | 44 | output_repoinfo = self.dnf('-v repoinfo') |
45 | matchobj = re.match(r".*Repo-pkgs\s*:\s*(?P<n_pkgs>[0-9]+)", output_repoinfo, re.DOTALL) | 45 | matchobj = re.match(r".*Repo-pkgs\s*:\s*(?P<n_pkgs>[0-9]+)", output_repoinfo, re.DOTALL) |
46 | self.assertTrue(matchobj is not None, msg = "Could not find the amount of packages in dnf repoinfo output: %s" %(output_repoinfo)) | 46 | self.assertTrue(matchobj is not None, msg = "Could not find the amount of packages in dnf repoinfo output: %s" %(output_repoinfo)) |
47 | self.assertTrue(int(matchobj.group('n_pkgs')) > 0, msg = "Amount of remote packages is not more than zero: %s\n" %(output_repoinfo)) | 47 | self.assertTrue(int(matchobj.group('n_pkgs')) > 0, msg = "Amount of remote packages is not more than zero: %s\n" %(output_repoinfo)) |