|
@@ -37,11 +37,11 @@ class DnfSelftest(DnfTest):
|
|
|
|
|
|
import re
|
|
|
# Use '-y' for non-interactive mode: automatically import the feed signing key
|
|
|
- output_makecache = self.dnf('-y makecache')
|
|
|
+ output_makecache = self.dnf('-vy 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')
|
|
|
+ output_repoinfo = self.dnf('-v repoinfo')
|
|
|
matchobj = re.match(r".*Repo-pkgs\s*:\s*(?P<n_pkgs>[0-9]+)", output_repoinfo, re.DOTALL)
|
|
|
self.assertTrue(matchobj is not None, msg = "Could not find the amount of packages in dnf repoinfo output: %s" %(output_repoinfo))
|
|
|
self.assertTrue(int(matchobj.group('n_pkgs')) > 0, msg = "Amount of remote packages is not more than zero: %s\n" %(output_repoinfo))
|