]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-35-LOGIN: show remaining sessions in cleanup_session()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 26 Nov 2025 14:51:29 +0000 (23:51 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 7 Dec 2025 00:09:03 +0000 (09:09 +0900)
Otherwise it is hard to see which session is still active.

test/units/TEST-35-LOGIN.sh

index e536e0ae5ca1515060313969770f1ee3369a6a5e..4c5e9a51bb7e3ac866cbbc48c90d709c206021bb 100755 (executable)
@@ -268,6 +268,7 @@ cleanup_session() (
     loginctl terminate-user logind-test-user
 
     if ! timeout 30 bash -c "while loginctl --no-legend | grep -q logind-test-user; do sleep 1; done"; then
+        loginctl
         echo "WARNING: session for logind-test-user still active, ignoring."
     fi