1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 01:55:22 +03:00

test: wait for sessions being closed

If a session in closing state, the user state will be in online.

Fixes #32698.
This commit is contained in:
Yu Watanabe 2024-05-17 14:00:12 +09:00 committed by Daan De Meyer
parent c84b7a5743
commit fc5112580a

View File

@ -596,7 +596,7 @@ testcase_list_users_sessions_seats() {
return return
fi fi
assert_eq "$(loginctl list-users --no-legend | awk '$2 == "logind-test-user" { print $4 }')" lingering timeout 30 bash -c "until [[ \"\$(loginctl list-users --no-legend | awk '\$2 == \"logind-test-user\" { print \$4 }')\" == lingering ]]; do sleep 1; done"
} }
teardown_stop_idle_session() ( teardown_stop_idle_session() (