Handle return value in test_openbmc_setup.robot for Test SSH
Added validation for the following cases
- Run script with valid username and password (passing case)
- Run script with valud username and empty password (faling case)
Tested: Run robot templates/test_openbmc_setup.robot
Signed-off-by: Utpal Patel <utpalp@ami.com>
Change-Id: I4b781fcff0c9addf9a7f005e139c7508654711ce
diff --git a/templates/test_openbmc_setup.robot b/templates/test_openbmc_setup.robot
index b7b0748..f48381b 100644
--- a/templates/test_openbmc_setup.robot
+++ b/templates/test_openbmc_setup.robot
@@ -37,7 +37,10 @@
Test SSH Setup
[Documentation] Verify SSH works.
- BMC Execute Command uname -a
+ ${stdout} ${stderr} ${rc}= BMC Execute Command uname -a print_out=1 print_err=1
+ IF ${rc}
+ Fail BMC SSH login failed.
+ END
Test IPMI Setup