Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:tsaupe:branches:Base:System:systemd-openqa-v255
systemd
0001-test-systemd-update-utmp-is-optional.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-test-systemd-update-utmp-is-optional.patch of Package systemd
From e374109efb582f3f3a417fd3f8c71121873c7b0c Mon Sep 17 00:00:00 2001 From: Franck Bui <fbui@suse.com> Date: Tue, 6 Feb 2024 14:46:53 +0100 Subject: [PATCH] test: systemd-update-utmp is optional It can be disabled with '-Dutmp=false' --- test/units/testsuite-01.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/test/units/testsuite-01.sh b/test/units/testsuite-01.sh index 870b62da9a..bb3ff2f1e9 100755 --- a/test/units/testsuite-01.sh +++ b/test/units/testsuite-01.sh @@ -48,14 +48,16 @@ systemd-analyze blame # Test for 'systemd-update-utmp runlevel' vs 'systemctl daemon-reexec'. # See issue #27163. # shellcheck disable=SC2034 -for _ in {0..10}; do - systemctl daemon-reexec & - pid_reexec=$! - # shellcheck disable=SC2034 +if [[ -x /usr/lib/systemd/systemd-update-utmp ]]; then for _ in {0..10}; do - SYSTEMD_LOG_LEVEL=debug /usr/lib/systemd/systemd-update-utmp runlevel + systemctl daemon-reexec & + pid_reexec=$! + # shellcheck disable=SC2034 + for _ in {0..10}; do + SYSTEMD_LOG_LEVEL=debug /usr/lib/systemd/systemd-update-utmp runlevel + done + wait "$pid_reexec" done - wait "$pid_reexec" -done +fi touch /testok -- 2.43.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor