Enable SOL parameter test cases.
This change inclues:
- Added keywords to set SOL parameter.
- Added test cases to test SOL parameter.
- Added keyword to restore SOL's default configuration
after each test case.
Resolves openbmc/openbmc-test-automation#595
Change-Id: I437aa4eb87d5f55d799559dcd5943bd8fe88ae7f
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/lib/ipmi_utils.py b/lib/ipmi_utils.py
index 72c70df..2669ff8 100644
--- a/lib/ipmi_utils.py
+++ b/lib/ipmi_utils.py
@@ -58,3 +58,23 @@
return sol_info
###############################################################################
+
+
+###############################################################################
+def set_sol_setting(setting_name, setting_value):
+
+ r"""
+ Set SOL setting with given value.
+
+ # Description of argument(s):
+ # setting_name SOL setting which needs to be set (e.g. "retry-count").
+ # setting_value Value which needs to be set (e.g. "7").
+ """
+
+ status, ret_values = grk.run_key_u("Run IPMI Standard Command sol set " +
+ setting_name + " " + setting_value)
+
+ return status
+
+###############################################################################
+