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
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() (