diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2017-08-18 12:06:45 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-18 12:35:58 +0100 |
commit | 1b58b409db081e739b786f51326f65b1818a5890 (patch) | |
tree | a7147fc9bb5b357d0de463e60e9f9811b00dc0a1 /meta-selftest | |
parent | cb2dfe5627df2ff235b37622260484841f39af17 (diff) | |
download | openembedded-core-1b58b409db081e739b786f51326f65b1818a5890.tar.gz openembedded-core-1b58b409db081e739b786f51326f65b1818a5890.tar.bz2 openembedded-core-1b58b409db081e739b786f51326f65b1818a5890.zip |
oeqa: increase verbosity of dnf commands in dnf packagefeed test
Makes diagnosing failures easier.
[YOCTO #11209]
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest')
-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): 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)) |