Skip to content

Commit

Permalink
testlib: remove many excepted journal messages for pybridge
Browse files Browse the repository at this point in the history
  • Loading branch information
allisonkarlitskaya committed Jan 31, 2023
1 parent d54cbc0 commit a7e36f7
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions test/common/testlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1798,25 +1798,6 @@ def check_journal_messages(self, machine=None):
# Python 3.11 traceback annotation
self.allowed_messages.append(r"\s*\^+\s*")

self.allowed_messages += [
r"Exception ignored on calling ctypes callback function: <function Slot.__init__.<locals>.handler.*",
r"asyncio.exceptions.InvalidStateError: invalid state",
r"asyncio-ERROR: Exception in callback _Transport._read_ready.*",
r"handle: <Handle _Transport._read_ready\(\)>",
r"Traceback \(most recent call last\):",
r"File .*asyncio/events.py.*",
r"self._context.run\(self._callback, \*self._args\)",
r"File .*cockpit/transports.py.* _read_ready",
r"data = os.read\(self._in_fd, _Transport.BLOCK_SIZE\)",
r"ConnectionResetError: \[Errno 104\] Connection reset by peer"]

self.allowed_messages += [
r"File .*/systemd_ctypes/bus.py.* in handler",
r"return 1 if callback.*BusMessage.ref.* else 0",
r"File .*/systemd_ctypes/bus.py.* in done",
r".*future.set_exception\(error\)",
r"future.set_result\(message\)"]

messages = machine.journal_messages(matches, 6, cursor=cursor)

if "TEST_AUDIT_NO_SELINUX" not in os.environ:
Expand Down

0 comments on commit a7e36f7

Please sign in to comment.