Add IPMI timeout option "-N" to the command execution
Changes:
- By default 3 seconds timeout
- User can override the timeout by using CLI option
"-v IPMI_TIMEOUT:<value>"
Resolves openbmc/openbmc-test-automation#2111
Change-Id: I7cabd060f3652e4f9ebf98029e204c53f89ed14f
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/ipmi_client.robot b/lib/ipmi_client.robot
index 5c12ac5..a9cd0f2 100755
--- a/lib/ipmi_client.robot
+++ b/lib/ipmi_client.robot
@@ -18,7 +18,7 @@
${cmdByte}= ${EMPTY}
${arrayByte}= array:byte:
${IPMI_USER_OPTIONS} ${EMPTY}
-${IPMI_INBAND_CMD}= ipmitool -C ${IPMI_CIPHER_LEVEL} -p ${IPMI_PORT}
+${IPMI_INBAND_CMD}= ipmitool -C ${IPMI_CIPHER_LEVEL} -N ${IPMI_TIMEOUT} -p ${IPMI_PORT}
${HOST}= -H
${RAW}= raw