From: Mike Yuan Date: Mon, 28 Aug 2023 09:29:31 +0000 (+0800) Subject: Revert "Revert "test: add test case for systemd-update-utmp vs daemon-reexec"" X-Git-Tag: v255-rc1~628 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08a5bc4f48938383374595a4fd121f5fed566ee7;p=thirdparty%2Fsystemd.git Revert "Revert "test: add test case for systemd-update-utmp vs daemon-reexec"" This reverts commit 837773add465bd0a0d1f598203d297cf0129468b. The original issue #27287 is fixed by #28123. Let's reintroduce the test for systemd-update-utmp. --- diff --git a/test/units/testsuite-01.sh b/test/units/testsuite-01.sh index 780f37ee128..870b62da9ab 100755 --- a/test/units/testsuite-01.sh +++ b/test/units/testsuite-01.sh @@ -45,4 +45,17 @@ systemctl daemon-reload # of systemd-analyze blame. See issue #27187. 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 + for _ in {0..10}; do + SYSTEMD_LOG_LEVEL=debug /usr/lib/systemd/systemd-update-utmp runlevel + done + wait "$pid_reexec" +done + touch /testok