From c6b5d38af657ef885fd8f5215d1bf116ff06eca2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 8 Jun 2021 11:49:42 +0100 Subject: [PATCH] [Test] Log stderr in robot --- test/functional/lib/rspamd.robot | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/functional/lib/rspamd.robot b/test/functional/lib/rspamd.robot index 725ab6e5f..d3a230f56 100644 --- a/test/functional/lib/rspamd.robot +++ b/test/functional/lib/rspamd.robot @@ -243,9 +243,10 @@ Run Rspamd ... stdout=${RSPAMD_TMPDIR}/rspamd.stdout stderr=${RSPAMD_TMPDIR}/rspamd.stderr # Log stdout/stderr - ${rspamd_output} = Run Keyword If ${result.rc} == 0 Get File ${RSPAMD_TMPDIR}/rspamd.stdout - ... ELSE Get File ${RSPAMD_TMPDIR}/rspamd.stderr - Log ${rspamd_output} + ${rspamd_stdout} = Get File ${RSPAMD_TMPDIR}/rspamd.stdout + ${rspamd_stderror} = Get File ${RSPAMD_TMPDIR}/rspamd.stderr + Log ${rspamd_stdout} + Log ${rspamd_stderror} # Abort if it failed Should Be Equal As Integers ${result.rc} 0 -- 2.39.5