Add REDFISH_SUPPORT_TRANS_STATE to Auto_reboot plugin
Signed-off-by: Michael Shepos <shepos@us.ibm.com>
Change-Id: I3dc20129df3da198cf34f6d414b3e3e3d8a7832e
diff --git a/bin/plug_ins/Auto_reboot/cp_master b/bin/plug_ins/Auto_reboot/cp_master
index 5d2a707..1a885b5 100755
--- a/bin/plug_ins/Auto_reboot/cp_master
+++ b/bin/plug_ins/Auto_reboot/cp_master
@@ -73,8 +73,9 @@
cmd_buf = create_robot_cmd_string("extended/run_keyword.robot", OPENBMC_HOST, SSH_PORT, HTTPS_PORT,
REST_USERNAME, REST_PASSWORD, OPENBMC_USERNAME, OPENBMC_PASSWORD,
- keyword_string, lib_file_path, quiet,
+ REDFISH_SUPPORT_TRANS_STATE, keyword_string, lib_file_path, quiet,
test_mode, debug, outputdir, output, log, report)
+
if not robot_cmd_fnc(cmd_buf):
print_error_report("Robot command execution failed.")
exit(1)
diff --git a/lib/obmc_boot_test.py b/lib/obmc_boot_test.py
index a0f3e77..fc982e9 100755
--- a/lib/obmc_boot_test.py
+++ b/lib/obmc_boot_test.py
@@ -66,6 +66,8 @@
status_dir_path = os.environ.get('STATUS_DIR_PATH', "")
if status_dir_path != "":
status_dir_path = os.path.normpath(status_dir_path) + os.sep
+redfish_support_trans_state = int(os.environ.get('REDFISH_SUPPORT_TRANS_STATE', 0)) or \
+ int(BuiltIn().get_variable_value("${REDFISH_SUPPORT_TRANS_STATE}", default=0))
redfish_supported = BuiltIn().get_variable_value("${REDFISH_SUPPORTED}", default=False)
redfish_rest_supported = BuiltIn().get_variable_value("${REDFISH_REST_SUPPORTED}", default=False)
redfish_delete_sessions = int(BuiltIn().get_variable_value("${REDFISH_DELETE_SESSIONS}", default=1))
@@ -273,7 +275,7 @@
"status_dir_path", "base_tool_dir_path",
"ffdc_list_file_path", "ffdc_report_list_path",
"ffdc_summary_list_path", "execdir", "redfish_supported",
- "redfish_rest_supported"]
+ "redfish_rest_supported", "redfish_support_trans_state"]
plug_in_vars = parm_list + additional_values