TEST-35-LOGIN: show remaining sessions in cleanup_session()
Otherwise it is hard to see which session is still active.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user