- get/check stderr and return code of "SSHLibrary.Execute Command"
- remove whitespaces
Change-Id: I94461191549edc94fc8ea02ddda2ec81ec490b80
Signed-off-by: otti <uwe.ottrembka@adtran.com>
diff --git a/libraries/onos.robot b/libraries/onos.robot
index 1b26fce..f3f5e9f 100644
--- a/libraries/onos.robot
+++ b/libraries/onos.robot
@@ -29,8 +29,12 @@
[Documentation] Establishes an ssh connection to the onos contoller and executes a command
${conn_id}= SSHLibrary.Open Connection ${host} port=${port} timeout=300s
SSHLibrary.Login karaf karaf
- ${output}= SSHLibrary.Execute Command ${cmd}
+ @{result_values} SSHLibrary.Execute Command ${cmd} return_rc=True
+ ... return_stderr=True return_stdout=True
+ ${output} Set Variable @{result_values}[0]
Log ${output}
+ Should Be Empty @{result_values}[1]
+ Should Be Equal As Integers @{result_values}[2] 0
SSHLibrary.Close Connection
[Return] ${output}