TEST-35-LOGIN: Exclude manager entry in testcase_sanity_check()

Otherwise we try to kill the wrong session.
This commit is contained in:
Daan De Meyer 2024-04-29 16:06:54 +02:00
parent b03c2d51b2
commit e1f17dc641

View file

@ -390,7 +390,7 @@ testcase_sanity_check() {
# We're not in the same session scope, so in this case we need to specify
# the session ID explicitly
session=$(loginctl --no-legend | awk '$3 == "logind-test-user" { print $1; exit; }')
session=$(loginctl --no-legend | grep -v manager | awk '$3 == "logind-test-user" { print $1; exit; }')
loginctl kill-session --signal=SIGCONT "$session"
# FIXME(?)
#loginctl kill-session --signal=SIGCONT --kill-whom=leader "$session"