From 9d0758174ee4faba23c830020594f95223916539 Mon Sep 17 00:00:00 2001 From: Demi Marie Obenour Date: Sat, 18 May 2024 21:37:59 -0400 Subject: [PATCH] tests: Actually check that stdout was expected value Previously the expected stdout was completely ignored. --- qrexec/tests/socket/agent.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qrexec/tests/socket/agent.py b/qrexec/tests/socket/agent.py index 7b2f873a..1b7dea90 100644 --- a/qrexec/tests/socket/agent.py +++ b/qrexec/tests/socket/agent.py @@ -72,6 +72,7 @@ def assertExpectedStdout(self, target, expected_stdout: bytes, *, exit_code=0): self.assertTrue(msg_body) self.assertEqual(msg_type, qrexec.MSG_DATA_STDOUT) stdout_entries.append(msg_body) + self.assertEqual(b"".join(stdout_entries), expected_stdout) def make_executable_service(self, *args): util.make_executable_service(self.tempdir, *args)