Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix apt unit tests #6029

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Sep 13, 2024

  1. fix debian and Ubuntu version detection

    This fixes an issue with the Debian version information where it was
    retrieving a number instead of the codename.
    This also fixes an issue where the version of Ubuntu was incomplete and
    it was retrieving only the first part of it, rather than the full
    version.
    
    Signed-off-by: David Negreira <[email protected]>
    dnegreira committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    a44d5ab View commit details
    Browse the repository at this point in the history
  2. Improve apt.test_provides unit test

    The unit test was failing on recent versions of Debian and Ubuntu
    because the `login` package is no longer installing the binary on
    `/bin/login` but rather on `/usr/bin/login`.
    
    We have added a function which will retrieve the binary path depending
    on the distro as well.
    
    Resolves: avocado-framework#6028
    
    Signed-off-by: David Negreira <[email protected]>
    dnegreira committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    eff2add View commit details
    Browse the repository at this point in the history