]> 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>
Mon, 25 Feb 2019 22:13:06 +0000 (22:13 +0000)
commita80498e62898110e2ed6b01cbb9f5dd85995d13b
treee01110a4310156ad4a1fe0ce10e8c9bc6c9c1f24
parent76c66e061cdcdcbad73ed503668115120feb0ea3
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.

(From OE-Core rev: 4f662b253f7313c4e02bfafb527cdac076b6309a)

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