Skip to content

Commit

Permalink
test: Only look at "Class: user" sessions
Browse files Browse the repository at this point in the history
Systemd has introduced manager sessions, and we want to ignore them.
  • Loading branch information
mvollmer authored and martinpitt committed Aug 9, 2024
1 parent c9b2b98 commit 2c8762e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/verify/check-system-realms
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ class CommonTests:
self.assertGreaterEqual(len(sessions), 1)
for session in sessions:
out = m.execute('loginctl session-status ' + session)
if "State: active" in out: # skip closing sessions
if "State: active" in out and "Class: manager" not in out: # skip closing and manager sessions
self.assertIn(session_leader, out)
self.assertIn('cockpit-bridge', out)
# systemd < 255: "Service: cockpit; type web; class user"
Expand Down

0 comments on commit 2c8762e

Please sign in to comment.