]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/runtime/dnf: Fix test error when static libs are enabled
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Jun 2018 22:38:39 +0000 (22:38 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Jun 2018 07:52:13 +0000 (08:52 +0100)
The test works by excluding curl-dev which curl-staticdev depends upon.
When static libraries aren't disabled, this leads to an odd looking test
failure.

Simply exclude curl-staticdev as well in case its enabled to make sure
the test always works.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/runtime/cases/dnf.py

index 7da31cbf88da64190f1e14c5f93b2db94ca0eec9..67484bc9f95ed13e3248c3d7e2fe5388478895c9 100644 (file)
@@ -157,7 +157,7 @@ class DnfRepoTest(DnfTest):
         #check curl-dev is not installed adter removing all curl occurrences
         status, output = self.target.run('dnf list --installed | grep %s'% excludepkg, 1500)
         self.assertEqual(1, status, "%s was not removed,  is listed as installed"%excludepkg)
-        self.dnf_with_repo('install -y --exclude=%s curl*' % excludepkg)
+        self.dnf_with_repo('install -y --exclude=%s --exclude=curl-staticdev curl*' % excludepkg)
         #check curl-dev is not installed after being excluded
         status, output = self.target.run('dnf list --installed | grep %s'% excludepkg , 1500)
         self.assertEqual(1, status, "%s was not excluded, is listed as installed"%excludepkg)