Add time_out parm to FFDC commands

Change-Id: Ia4541cd0fe0d597971b611dfe2d41a7439eff486
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/openbmc_ffdc_methods.robot b/lib/openbmc_ffdc_methods.robot
index f1aa2b3..384debb 100755
--- a/lib/openbmc_ffdc_methods.robot
+++ b/lib/openbmc_ffdc_methods.robot
@@ -17,6 +17,10 @@
 Library            dump_utils.py
 Library            logging_utils.py
 
+*** Variables ***
+
+${FFDC_TIMEOUT}    240
+
 *** Keywords ***
 
 # Method : Call FFDC Methods                                   #
@@ -157,7 +161,10 @@
     @{ffdc_file_list}=  Create List  ${log_path}
 
     ${cmd_buf}=  Catenate  ${target} Execute Command \ ${cmd} \ ignore_err=${1}
+    ...  \ time_out=${FFDC_TIMEOUT}
     ${status}  ${ret_values}=  Run Key  ${cmd_buf}  ignore=${1}
+    # If the command times out, status will be 'FAIL'.
+    Return From Keyword If  '${status}' == 'FAIL'  ${ffdc_file_list}
 
     ${stdout}=  Set Variable  @{ret_values}[0]
     ${stderr}=  Set Variable  @{ret_values}[1]