Bug 15086 - oe-sefltest failure with nodistro instead of poky in runtime_test.TestImage.test_testimage_dnf
Summary: oe-sefltest failure with nodistro instead of poky in runtime_test.TestImage.t...
Status: RESOLVED FIXED
Alias: None
Product: Functional (self) Testing
Classification: QA/Testing
Component: oe-selftest (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 4.3 M1
Assignee: Thomas Roos
QA Contact:
URL:
Whiteboard: NEWCOMER
Depends on:
Blocks:
 
Reported: 2023-03-30 09:07 UTC by Richard Purdie
Modified: 2023-04-28 07:10 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Purdie 2023-03-30 09:07:30 UTC
If you run:

oe-selftest -r runtime_test.TestImage.test_testimage_dnf

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

Traceback (most recent call last):
  File "/media/build/poky/meta/lib/oeqa/core/decorator/__init__.py", line 35, in wrapped_f
    return func(*args, **kwargs)
  File "/media/build/poky/meta/lib/oeqa/core/decorator/__init__.py", line 35, in wrapped_f
    return func(*args, **kwargs)
  File "/media/build/poky/build-st-2173771/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py", line 49, in test_verify_package_feeds
    self.assertTrue(matchobj is not None, msg = "Could not find the amount of packages in dnf repoinfo output: %s" %(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 'oe-remote-repo':
  - Curl error (37): Couldn't read a file:// file for file:///etc/pki/packagefeed-gpg/PACKAGEFEED-GPG-KEY-nodistro-None [Couldn't open file /etc/pki/packagefeed-gpg/PACKAGEFEED-GPG-KEY-nodistro-None]
Error: Failed to retrieve GPG key for repo 'oe-remote-repo': Curl error (37): Couldn't read a file:// file for file:///etc/pki/packagefeed-gpg/PACKAGEFEED-GPG-KEY-nodistro-None [Couldn'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't happen.
Comment 1 Thomas Roos 2023-04-28 07:10:10 UTC
A patch was merged to master: https://git.yoctoproject.org/poky/commit/?id=150464e2ffa0b19fca347a4b8c159ac053455e09