Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924377 - app-admin/salt-3005.5 fails tests on openrc: [Errno 2] No such file or directory: 'systemctl'
Summary: app-admin/salt-3005.5 fails tests on openrc: [Errno 2] No such file or direct...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 921974
  Show dependency tree
 
Reported: 2024-02-12 16:41 UTC by matoro
Modified: 2024-02-13 19:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log and emerge --info (build.log.gz,279.64 KB, application/gzip)
2024-02-12 16:42 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-02-12 16:41:46 UTC
Seems to unconditionally assume systemd is available.  Passes on systemd stage.

FAILED tests/pytests/unit/modules/test_aptpkg.py::test_autoremove - FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'
FAILED tests/pytests/unit/modules/test_aptpkg.py::test_upgrade - FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'
FAILED tests/pytests/unit/modules/test_aptpkg.py::test_upgrade_downloadonly - FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'
FAILED tests/pytests/unit/modules/test_aptpkg.py::test_upgrade_allow_downgrades - FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'
FAILED tests/pytests/unit/modules/test_aptpkg.py::test_call_apt_default - FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'
FAILED tests/pytests/unit/modules/test_aptpkg.py::test_call_apt_with_kwargs - FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'
FAILED tests/pytests/unit/modules/test_linux_sysctl.py::test_persist_no_conf_failure - FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'
FAILED tests/pytests/unit/modules/test_yumpkg.py::test_latest_version_with_options - FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'
FAILED tests/pytests/unit/modules/test_yumpkg.py::test_list_repo_pkgs_with_options - FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'
FAILED tests/pytests/unit/modules/test_yumpkg.py::test_list_upgrades_dnf - FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'
FAILED tests/pytests/unit/modules/test_yumpkg.py::test_list_upgrades_yum - FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'
FAILED tests/pytests/unit/modules/test_yumpkg.py::test_refresh_db_with_options - FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'
FAILED tests/pytests/unit/modules/test_yumpkg.py::test_call_yum_default - FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'
FAILED tests/pytests/unit/modules/test_yumpkg.py::test_call_yum_with_kwargs - FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'
FAILED tests/unit/modules/test_kernelpkg_linux_yum.py::YumKernelPkgTestCase::test_remove_error - FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'
FAILED tests/unit/modules/test_kernelpkg_linux_yum.py::YumKernelPkgTestCase::test_remove_success - FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'
FAILED tests/unit/modules/test_zypperpkg.py::ZypperTestCase::test_remove_purge - FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'

Reproducible: Always
Comment 1 matoro archtester 2024-02-12 16:42:46 UTC
Created attachment 884810 [details]
build.log and emerge --info
Comment 2 Patrick McLean gentoo-dev 2024-02-13 19:05:22 UTC
Strange, I run the tests on an openrc system. Oh well, should be pretty easy to skip those tests when systemd isn't installed.
Comment 3 Larry the Git Cow gentoo-dev 2024-02-13 19:27:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da5fe311f71bcf58ab584c6d198b8cd65c4ca0d7

commit da5fe311f71bcf58ab584c6d198b8cd65c4ca0d7
Author:     Patrick McLean <chutzpah@gentoo.org>
AuthorDate: 2024-02-13 19:10:21 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2024-02-13 19:27:22 +0000

    app-admin/salt: Skip systemd tests in 3005.5 (bug #924377)
    
    Closes: https://bugs.gentoo.org/924377
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 app-admin/salt/salt-3005.5.ebuild | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)