diff options
author | Mike Yuan <me@yhndnzj.com> | 2023-08-28 11:29:31 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-08-28 18:43:57 +0200 |
commit | 08a5bc4f48938383374595a4fd121f5fed566ee7 (patch) | |
tree | 6da4bba75a97a66a2d07852dbe1f7d46f928ba59 /test/units/testsuite-01.sh | |
parent | Merge pull request #28948 from poettering/tpm2-duplicate-pcr-names (diff) | |
download | systemd-08a5bc4f48938383374595a4fd121f5fed566ee7.tar.xz systemd-08a5bc4f48938383374595a4fd121f5fed566ee7.zip |
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.
Diffstat (limited to '')
-rwxr-xr-x | test/units/testsuite-01.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/units/testsuite-01.sh b/test/units/testsuite-01.sh index 780f37ee12..870b62da9a 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 |