Changes to FFDC to support ffdc_dir_path and ffdc_prefix as parms.
lib/openbmc_ffdc.py
- New py counterpart to openbmc_ffdc.robot. Converted ffdc keyword to
python. I did this as an effort to reduce dependencies on global
variables like FFDC_DIR_PATH, FFDC_LOG_PATH, etc and to support
ffdc_dir_path and ffdc_prefix as parms to the keyword.
lib/openbmc_ffdc.robot:
- Added line to bring in new lib/openbmc_ffdc.py.
- Removed ROBOT version of FFDC keyword.
Change-Id: Ic82255f4fbba3b0e6e8eb7faa942c948ce6a522d
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/obmc_boot_test.py b/lib/obmc_boot_test.py
index 72c0499..24be494 100755
--- a/lib/obmc_boot_test.py
+++ b/lib/obmc_boot_test.py
@@ -77,8 +77,8 @@
time_string = time.strftime("%y%m%d.%H%M%S.", loc_time)
openbmc_nickname = BuiltIn().get_variable_value("${openbmc_nickname}")
+ openbmc_host = BuiltIn().get_variable_value("${openbmc_host}")
if openbmc_nickname == "":
- openbmc_host = BuiltIn().get_variable_value("${openbmc_host}")
ffdc_prefix = openbmc_host
else:
ffdc_prefix = openbmc_nickname