OCP_2_5_Group_1
DSSD_25_Firmware_Upgrade_Test_Case.py
- This script will run the following tests:
Verify that the device supports upgrading the Old firmware with the New firmware from the latest release for the very first time.
Verify that the device does not suffer any data loss or destruction during the Firmware Upgrade processing.
Note: Any failures encountered must be inspected before running other OCP scripts. Therefore, if a failure occurs, any subsequent OCP scripts in the suite will not be automatically started.
Pass/Fail: Script passes if all tests pass
Open Compute Project Datacenter NVMe SSD Spec v2.5 requirements referenced by this script:
FWUP-11
- compare_dict(log_a, log_b, resv, static, dyn)
Compares corresponding values in two dictionaries
- Parameters:
log_a (dict) – First dictionary of objects to be compared
log_b (dict) – Second dictionary of objects to be compared
resv (list) – List of reserved fields
static (list) – List of static fields
dyn (list) – List of dynamic fields
- Return type:
None
- enable_fw_update(dut)
Enables FW Update in SMBus command code 90 (byte 91)
- Parameters:
dut (XML_API) – Device object under test
- Return type:
None