From 8762e7e899066edbcfe9f0990f0b973b24de5752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Po=C5=82awski?= Date: Mon, 8 Jan 2024 11:57:07 +0100 Subject: [PATCH] Test: Add stderr to log when test fails --- test/integration/test_koji.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/integration/test_koji.py b/test/integration/test_koji.py index 523d8b5..8d27338 100644 --- a/test/integration/test_koji.py +++ b/test/integration/test_koji.py @@ -138,14 +138,16 @@ def check_res(self, res: subprocess.CompletedProcess): if res.returncode != 0: msg = ("\nkoji FAILED:" + "\n args: [" + " ".join(res.args) + "]" + - "\n error: " + res.stdout) + "\n error: " + res.stdout + + "\n stderr: " + res.stderr) self.fail(msg) def check_fail(self, res: subprocess.CompletedProcess): if res.returncode == 0: msg = ("\nkoji unexpectedly succeed:" + "\n args: [" + " ".join(res.args) + "]" + - "\n error: " + res.stdout) + "\n error: " + res.stdout + + "\n stderr: " + res.stderr) self.fail(msg) def task_id_from_res(self, res: subprocess.CompletedProcess) -> str: