Fix to accommodate xyz's BMC dump path changes
BMC dump uri has changed from /xyz/openbmc_project/dump/entry/ to
/xyz/openbmc_project/dump/bmc/entry/. This change is to make dump
automation work on builds with or without this url changes.
Change-Id: I27b010d67f17efb88d60b673153fafa5a3b0565f
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/lib/openbmc_ffdc_methods.robot b/lib/openbmc_ffdc_methods.robot
index c5a0281..817ec06 100755
--- a/lib/openbmc_ffdc_methods.robot
+++ b/lib/openbmc_ffdc_methods.robot
@@ -507,6 +507,10 @@
[Documentation] Collect dumps from dump entry.
[Arguments] ${log_prefix_path}=${LOG_PREFIX}
+ ${resp}= OpenBMC Get Request ${DUMP_URI}
+ Run Keyword If '${resp.status_code}' == '${HTTP_NOT_FOUND}'
+ ... Set Test Variable ${DUMP_ENTRY_URI} /xyz/openbmc_project/dump/entry/
+
${data}= Read Properties ${DUMP_ENTRY_URI}enumerate quiet=${1} timeout=${30}
# Grab the list of entries from dump/entry/