commit c6b5d38: [Test] Log stderr in robot

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Jun 8 11:00:05 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-06-08 11:49:42 +0100
URL: https://github.com/rspamd/rspamd/commit/c6b5d38af657ef885fd8f5215d1bf116ff06eca2

[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


More information about the Commits mailing list