]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/runtime/dnf: Make sure test_dnf_install does not skipped
authorYeoh Ee Peng <ee.peng.yeoh@intel.com>
Wed, 29 Aug 2018 09:48:21 +0000 (17:48 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 Aug 2018 15:16:06 +0000 (16:16 +0100)
commit4f662b253f7313c4e02bfafb527cdac076b6309a
tree59492901e776458e34944f6b6199ef45ddfc9096
parent595e9922cdbacf84cf35cc83f0d03cace042e302
oeqa/runtime/dnf: Make sure test_dnf_install does not skipped

During debugging dnf issue, we found that the test_dnf_install
PASSED the testing even though the environment does not allow
dnf install to run successfully. Further debugging had identified
that current test_dnf_install will execute dnf install even when
the package to be installed already exist, thus dnf install
will just skipped and this test will PASSED even though it was
not.

To solve this, added additional logic to check if the package
to be installed already exist, if yes then remove the package
before actually run dnf install. This will make sure dnf install
was tested as expected.

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/runtime/cases/dnf.py