This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/platform/mellanox/mlnx-platform-api/tests
Junchao-Mellanox 5c80d3804b [Mellanox] wait reset cause ready ()
Why I did it
SONiC service determine-reboot-cause might run before driver creating reset cause files. In that case, the reset cause will be "Unknown". This PR introduces a wait mechanism to wait for reset cause sysfs files ready.

How I did it
/run/hw-management/config/reset_attr_ready is the file to indicate all reset cause files are ready. In chassis.get_reboot_cause function, it waits /run/hw-management/config/reset_attr_ready for up to 45 seconds.

How to verify it
Manual test on master/202211/202205
2023-10-04 14:34:27 +08:00
..
input_platform [Mellanox] Use sdk sysfs instead of ethtool () () 2022-11-09 16:45:25 -08:00
__init__.py [Mellanox] Add NVIDIA Copyright header to "mellanox" files () 2021-10-17 19:03:02 +03:00
conftest.py [Mellanox] Update NVIDIA License header for files changed since 1.1.2022 () 2022-03-23 13:19:25 +02:00
duplicate_action.json [Mellanox] Fix thermal control bugs () 2020-03-25 10:54:07 -07:00
duplicate_condition.json [Mellanox] Fix thermal control bugs () 2020-03-25 10:54:07 -07:00
empty_action.json [Mellanox] Fix thermal control bugs () 2020-03-25 10:54:07 -07:00
empty_condition.json [Mellanox] Fix thermal control bugs () 2020-03-25 10:54:07 -07:00
mock_eeprom_data [Mellanox] Refactor Mellanox platform API to support dynamic port configuration () 2021-10-25 07:59:06 +03:00
mock_platform.py [Mellanox] Add NVIDIA Copyright header to "mellanox" files () 2021-10-17 19:03:02 +03:00
mock_psu_vpd [Mellanox] Refactor Mellanox platform API to support dynamic port configuration () 2021-10-25 07:59:06 +03:00
policy_with_same_conditions.json [Mellanox] Optimize thermal control policies () 2022-01-19 11:44:37 +02:00
test_chassis.py [Mellanox] wait reset cause ready () 2023-10-04 14:34:27 +08:00
test_cpu_thermal_control.py [Mellanox] Add CPU thermal control for Nvidia platforms () 2022-03-21 09:54:52 -07:00
test_eeprom.py [Mellanox] Check system eeprom existence in a retry manner () () 2023-02-22 13:43:03 +08:00
test_fan_api.py [Mellanox] Update NVIDIA License header for files changed since 1.1.2022 () 2022-03-23 13:19:25 +02:00
test_firmware.py [Mellanox] Update NVIDIA License header for files changed since 1.1.2022 () 2022-03-23 13:19:25 +02:00
test_led.py [Mellanox] Enhance Platform API to support SN2201 - RJ45 ports and new components mgmt. () 2022-07-28 20:24:49 +00:00
test_module.py [Mellanox] Enhance Platform API to support SN2201 - RJ45 ports and new components mgmt. () 2022-07-28 20:24:49 +00:00
test_psu.py [Mellanox] Adjust PSU voltage WA () 2022-04-22 11:02:30 +03:00
test_sfp_event.py [Mellanox] Refactor Mellanox platform API to support dynamic port configuration () 2021-10-25 07:59:06 +03:00
test_sfp.py [202205] [Mellanox] Fix issue: user must set admin down before toggling LPM () 2023-03-24 11:05:49 -07:00
test_thermal_policy.py [Mellanox] Update NVIDIA License header for files changed since 1.1.2022 () 2022-03-23 13:19:25 +02:00
test_thermal.py [Mellanox] [202205] Add sodimm sensor () 2023-03-01 12:14:53 +02:00
test_utils.py [Mellanox] Check system eeprom existence in a retry manner () () 2023-02-22 13:43:03 +08:00
test_watchdog.py [Mellanox] Fix issue: watchdogutil command does not work () () 2023-08-25 17:01:37 -07:00
thermal_policy.json [Mellanox] Optimize thermal control policies () 2022-01-19 11:44:37 +02:00