Update cipher test suite command option
Resolves openbmc/openbmc-test-automation#2176
Change-Id: I8c86388d509000215a034a2f83f93f2ec22867ba
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/security/test_bmc_ssh_security.robot b/security/test_bmc_ssh_security.robot
index fae0628..7ea06fe 100644
--- a/security/test_bmc_ssh_security.robot
+++ b/security/test_bmc_ssh_security.robot
@@ -50,6 +50,15 @@
Printn
${ssh_cmd_buf}= Catenate ssh -o NumberOfPasswordPrompts=0 UserKnownHostsFile=/dev/null
- ... StrictHostKeyChecking=no -vv ${OPENBMC_HOST} 2>&1
+ ... -o StrictHostKeyChecking=no -vv ${OPENBMC_HOST} 2>&1
+
+ ${rc} ${std_err}= Shell Cmd ! ${ssh_cmd_buf}
+ Log std_err=${std_err} console=yes
+ Log rc=${rc} console=yes
+
+ ${has_it}= Run Keyword And Return Status Should Contain ${std_err} Permission denied
+ Skip If not ${has_it}
+ ... Skipping test case since response is not as expected
+
Shell Cmd ! ${ssh_cmd_buf} | egrep -- "${weak_key_regex}"
Shell Cmd ! ${ssh_cmd_buf} | egrep -- "${mac_key_regex}"