[OE-core] [PATCH v2 7/7] dnf: expand dnf selftest to test signed package feeds

Markus Lehtonen markus.lehtonen at linux.intel.com
Mon Aug 14 13:23:41 UTC 2017


On 14/08/2017, 14.16, "Alexander Kanavin" <alexander.kanavin at linux.intel.com> wrote:

    On 08/11/2017 06:35 PM, Markus Lehtonen wrote:
    >   
    >           import re
    > -        output_makecache = self.dnf('makecache')
    > +        output_makecache = self.dnf('-y makecache')
    
    Why add '-y'? Can you add a comment (just prior to this line) explaining 
    what question dnf is asking?

Dnf is asking whether to import the new key.

    
    > +        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')
    
    Do 'makecache' or 'repoinfo' print any indication that repo signing is 
    in use and working correctly? Can you check for presence of that in the 
    commands' output?

No


Thanks,
   Markus 





More information about the Openembedded-core mailing list