<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15086</bug_id>
          
          <creation_ts>2023-03-30 09:07:30 +0000</creation_ts>
          <short_desc>oe-sefltest failure with nodistro instead of poky in runtime_test.TestImage.test_testimage_dnf</short_desc>
          <delta_ts>2023-04-28 07:10:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>NEWCOMER</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.3 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Thomas Roos">thomas</assigned_to>
          <cc>pavel</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>thomas</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>95216</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-03-30 09:07:30 +0000</bug_when>
    <thetext>If you run:

oe-selftest -r runtime_test.TestImage.test_testimage_dnf

with DISTRO unset (i.e. oe-core&apos;s nodistro), the test will fail:

Traceback (most recent call last):
  File &quot;/media/build/poky/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 35, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/media/build/poky/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 35, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/media/build/poky/build-st-2173771/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py&quot;, line 49, in test_verify_package_feeds
    self.assertTrue(matchobj is not None, msg = &quot;Could not find the amount of packages in dnf repoinfo output: %s&quot; %(output_repoinfo))
AssertionError: False is not true : Could not find the amount of packages in dnf repoinfo output: DNF version: 4.14.0
cachedir: /var/cache/dnf
OE Remote Repo:                                  17 kB/s | 520  B     00:00    
OE Remote Repo:                                 0.0  B/s |   0  B     00:00    
Errors during downloading metadata for repository &apos;oe-remote-repo&apos;:
  - Curl error (37): Couldn&apos;t read a file:// file for file:///etc/pki/packagefeed-gpg/PACKAGEFEED-GPG-KEY-nodistro-None [Couldn&apos;t open file /etc/pki/packagefeed-gpg/PACKAGEFEED-GPG-KEY-nodistro-None]
Error: Failed to retrieve GPG key for repo &apos;oe-remote-repo&apos;: Curl error (37): Couldn&apos;t read a file:// file for file:///etc/pki/packagefeed-gpg/PACKAGEFEED-GPG-KEY-nodistro-None [Couldn&apos;t open file /etc/pki/packagefeed-gpg/PACKAGEFEED-GPG-KEY-nodistro-None]
Ignoring repositories: oe-remote-repo
Total packages: 0

if you use DISTRO=poky, this doesn&apos;t happen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95472</commentid>
    <comment_count>1</comment_count>
    <who name="Thomas Roos">thomas</who>
    <bug_when>2023-04-28 07:10:10 +0000</bug_when>
    <thetext>A patch was merged to master: https://git.yoctoproject.org/poky/commit/?id=150464e2ffa0b19fca347a4b8c159ac053455e09</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>