mirror of
https://github.com/systemd/systemd.git
synced 2024-10-26 17:27:41 +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:
parent
c84b7a5743
commit
fc5112580a
@ -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() (
|
||||
|
Loading…
Reference in New Issue
Block a user