[OE-core] [PATCH v2] runtime/dnf: Add new dnf test cases

Alexander Kanavin alexander.kanavin at linux.intel.com
Thu May 11 18:56:27 UTC 2017


On 05/11/2017 08:33 PM, jose.perez.carranza at linux.intel.com wrote:
> +    def test_dnf_exclude(self):
> +        excludepkg = 'curl-dev'
> +        self.dnf('list %s' % excludepkg, 0)
> +        self.dnf_with_repo('remove -y curl')
> +        self.dnf_with_repo('install -y --exclude=%s curl' % excludepkg)
> +        self.dnf('list %s' % excludepkg, 1)

1) Why is curl-dev already installed when the test starts? Will that be 
always the case?

2) I still don't understand how the test works. You are asking for curl 
to be installed and curl-dev to be excluded, but curl-dev would not be 
installed regardless of --exclude option, because curl does not depend 
on it. You need to test a situation where --exclude makes a difference, 
and check that there is indeed a difference.

Alex




More information about the Openembedded-core mailing list