Reduce logging in OpenStackOperations
[integration/test.git] / csit / libraries / DevstackUtils.robot
index b611c1ed9b65d84bec14bab45e6b50d5297a5917..ae8088c96c2486d9354238025d726b50bc3c6aa8 100644 (file)
@@ -171,3 +171,10 @@ Write Commands Until Prompt
     SSHLibrary.Write    ${cmd};echo Command Returns $?
     ${output}=    SSHLibrary.Read Until Prompt
     [Return]    ${output}
+
+Write Commands Until Prompt And Log
+    [Arguments]    ${cmd}    ${timeout}=${default_devstack_prompt_timeout}
+    [Documentation]    quick wrapper for Write and Read Until Prompt Keywords to make test cases more readable
+    ${output} =    Write Commands Until Prompt    ${cmd}    ${timeout}
+    Log    ${output}
+    [Return]    ${output}