Fix "Convert eSEL To Elog Format" errors.

- Needed to cd to target directory to get the results in the
  right dir.
- Needed to add "-p decode_obmc_data" to eSEL.pl call.

Change-Id: Ica44516de825ccff9b82d54bdf7a4152aebf93eb
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/openbmc_ffdc_methods.robot b/lib/openbmc_ffdc_methods.robot
index b7fc413..2cd8207 100755
--- a/lib/openbmc_ffdc_methods.robot
+++ b/lib/openbmc_ffdc_methods.robot
@@ -305,11 +305,16 @@
 ##############################################################################
 Convert eSEL To Elog Format
     [Documentation]  Execute parser tool on the eSEL data file to generate
-    ...              formated error log.
+    ...              formatted error log.
     [Arguments]  ${esel_file_path}
     # Desription of arguments:
-    # ${esel_file_path}  Absoulte path of the eSEL data.
+    # esel_file_path  Absolute path of the eSEL data (e.g.
+    #                 /tmp/w55.170404.154820.esel).
 
-    Run  eSEL.pl -l ${esel_file_path}
+    # Note: The only way to get eSEL.pl to put the output in a particular
+    # directory is to cd to that directory.
+    ${cmd_buf}=  Catenate  cd $(dirname ${esel_file_path}) ; eSEL.pl -l
+    ...  ${esel_file_path} -p decode_obmc_data
+    Run  ${cmd_buf}
 
 ##############################################################################