From 0e373db0c02a204bb36f8212c2d507969c3367d9 Mon Sep 17 00:00:00 2001 From: Jamo Luhrsen Date: Mon, 6 Nov 2017 17:01:12 -0800 Subject: [PATCH] Redirect ostestr stderr output to /dev/null comments in the code, but for completeness here is the reason: There are tons of deprecation error messages when we use ostestr in our CSIT environment (openstack via devstack) The robot log files are very large and one culprit is all these deprecation warnings. If we redirect stderr to /dev/null we should be able to ignore them. We will miss any other errors, however. Change-Id: Ic533493cf3f271e4004c0eaf9f0cb2d52e2be8c9 Signed-off-by: Jamo Luhrsen --- csit/libraries/DevstackUtils.robot | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/csit/libraries/DevstackUtils.robot b/csit/libraries/DevstackUtils.robot index 78b818e13c..b611c1ed9b 100644 --- a/csit/libraries/DevstackUtils.robot +++ b/csit/libraries/DevstackUtils.robot @@ -52,7 +52,10 @@ Run Tempest Tests Without Debug SSHLibrary.Read Tempest Conf Modify Pause On Test Teardown False SSHLibrary.Set Client Configuration timeout=${timeout} - ${output}= Write Commands Until Prompt ostestr --regex ${tempest_regex} timeout=${timeout} + # There are tons of deprecation error messages when we use ostestr in our CSIT environment (openstack via devstack) + # The robot log files are very large and one culprit is all these deprecation warnings. If we redirect stderr to + # /dev/null we should be able to ignore them. We will miss any other errors, however. + ${output}= Write Commands Until Prompt ostestr --regex ${tempest_regex} 2>/dev/null timeout=${timeout} Log ${output} SSHLibrary.Close Connection Should Contain ${output} Failed: 0 -- 2.36.6