Skip to content

Commit 1ab407d

Browse files
committed
test: Ignore timedatex.service disconnection messages
`timedatex.service` shuts down on inactivity. The overview page has a proxy on the systemd service object to watch for property changes, which will trigger a NoReply error on the proxy occasionally. Adding this to dbus_error_matches_unknown() would hide actually interesting errors when a service crashes in the middle; so let's not do that, and ignore that message instead.
1 parent 84c7ee5 commit 1ab407d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/common/testlib.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,6 +1712,9 @@ def login_and_go(self, path: Optional[str] = None, user: Optional[str] = None, h
17121712
"pcp-archive: no such metric: .*: Unknown metric name",
17131713
"pcp-archive: instance name lookup failed:.*",
17141714
"pcp-archive: couldn't create pcp archive context for.*",
1715+
1716+
# timedatex.service shuts down after timeout, runs into race condition with property watching
1717+
".*org.freedesktop.timedate1: couldn't get all properties.*Error:org.freedesktop.DBus.Error.NoReply.*",
17151718
]
17161719

17171720
default_allowed_messages += os.environ.get("TEST_ALLOW_JOURNAL_MESSAGES", "").split(",")

0 commit comments

Comments
 (0)