Redirect ostestr stderr output to /dev/null 36/65236/1
authorJamo Luhrsen <jluhrsen@redhat.com>
Tue, 7 Nov 2017 01:01:12 +0000 (17:01 -0800)
committerJamo Luhrsen <jluhrsen@redhat.com>
Tue, 7 Nov 2017 01:01:12 +0000 (17:01 -0800)
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 <jluhrsen@redhat.com>
csit/libraries/DevstackUtils.robot

index 78b818e13c7ae0ca6ae14d7a48a41715f0197d02..b611c1ed9b65d84bec14bab45e6b50d5297a5917 100644 (file)
@@ -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