================================================================================== test session starts =================================================================================== platform linux -- Python 3.9.2, pytest-7.4.4, pluggy-1.3.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /usr/local/sonic_pde_tests collected 87 items test_bmc.py::test_for_bmc SKIPPED (Not supported) [ 1%] test_config.py::test_for_required_bcm_config_file PASSED [ 2%] test_config.py::test_for_required_bcm_config_settings PASSED [ 3%] test_cpld.py::test_for_num_cpld SKIPPED (Skip the testing due to the module is not supported in BSP) [ 4%] test_cpld.py::test_for_cpld_read SKIPPED (Skip the testing due to the module is not supported in BSP) [ 5%] test_eeprom.py::test_for_eeprom_read PASSED [ 6%] test_eeprom.py::test_for_eeprom_has_mac PASSED [ 8%] test_eeprom.py::test_for_eeprom_mac PASSED [ 9%] test_eeprom.py::test_for_eeprom_has_sn PASSED [ 10%] test_eeprom.py::test_for_eeprom_sn FAILED [ 11%] test_eeprom.py::test_for_eeprom_model PASSED [ 12%] test_eeprom.py::test_for_platform_id PASSED [ 13%] test_eeprom.py::test_for_eeprom_junk_characters PASSED [ 14%] test_fan.py::test_for_num_fans PASSED [ 16%] test_fan.py::test_for_fans_dir PASSED [ 17%] test_fan.py::test_for_fans_status PASSED [ 18%] test_fan.py::test_for_fans_present PASSED [ 19%] test_fan.py::test_for_fans_duty SKIPPED (Skip the testing due to the BMC platform fan control is not supported in BSP) [ 20%] test_leds.py::test_for_set_fan_sysled SKIPPED (Skip the testing due to the python module is not supported) [ 21%] test_leds.py::test_for_set_fantray_sysled SKIPPED (Skip the testing due to the python module is not supported) [ 22%] test_leds.py::test_for_set_psu_sysled SKIPPED (Skip the testing due to the python module is not supported) [ 24%] test_leds.py::test_for_set_sys_sysled SKIPPED (Skip the testing due to the python module is not supported) [ 25%] test_leds.py::test_for_set_loc_sysled SKIPPED (Skip the testing due to the python module is not supported) [ 26%] test_os.py::test_for_service_port_presence PASSED [ 27%] test_os.py::test_for_service_port_dhcp PASSED [ 28%] test_os.py::test_for_flooding_dmesg PASSED [ 29%] test_os.py::test_for_flooding_syslog PASSED [ 31%] test_os.py::test_for_fstrim SKIPPED ('sda' is not a SSD) [ 32%] test_os.py::test_for_cpuload PASSED [ 33%] test_platform.py::test_for_cpld_driver_loading SKIPPED (Skip the testing due to the driver not supported) [ 34%] test_platform.py::test_for_psu_driver_loading SKIPPED (Skip the testing due to the driver not supported) [ 35%] test_platform.py::test_for_psu_driver_unloading SKIPPED (Skip the testing due to the driver not supported) [ 36%] test_platform.py::test_for_fan_driver_loading SKIPPED (Skip the testing due to the driver not supported) [ 37%] test_platform.py::test_for_fan_driver_unloading SKIPPED (Skip the testing due to the driver not supported) [ 39%] test_platform.py::test_for_sfp_driver_loading SKIPPED (Skip the testing due to the driver not supported) [ 40%] test_platform.py::test_for_sfp_driver_unloading SKIPPED (Skip the testing due to the driver not supported) [ 41%] test_platform.py::test_for_temp_driver_loading SKIPPED (Skip the testing due to the driver not supported) [ 42%] test_platform.py::test_for_temp_driver_unloading SKIPPED (Skip the testing due to the driver not supported) [ 43%] test_platform.py::test_for_led_driver_loading SKIPPED (Skip the testing due to the driver not supported) [ 44%] test_platform.py::test_for_led_driver_unloading SKIPPED (Skip the testing due to the driver not supported) [ 45%] test_platform.py::test_for_eeprom_driver_loading PASSED [ 47%] test_platform.py::test_for_eeprom_driver_unloading PASSED [ 48%] test_platform.py::test_for_mac_driver_loading SKIPPED (Skip the testing due to the driver not supported) [ 49%] test_platform.py::test_for_mac_driver_unloading SKIPPED (Skip the testing due to the driver not supported) [ 50%] test_platform.py::test_for_ethernet_mac_address PASSED [ 51%] test_port.py::test_for_port SKIPPED (Not supported) [ 52%] test_psu.py::test_for_num_psus PASSED [ 54%] test_psu.py::test_for_psu_present PASSED [ 55%] test_psu.py::test_for_psu_notpresent PASSED [ 56%] test_psu.py::test_for_psu_status PASSED [ 57%] test_psu.py::test_for_psu_serial_num PASSED [ 58%] test_psu.py::test_for_psu_model PASSED [ 59%] test_psu.py::test_for_psu_voltage PASSED [ 60%] test_psu.py::test_for_psu_current PASSED [ 62%] test_psu.py::test_for_psu_power PASSED [ 63%] test_psu.py::test_for_psu_input_voltage PASSED [ 64%] test_psu.py::test_for_psu_input_current PASSED [ 65%] test_psu.py::test_for_psu_capacity PASSED [ 66%] test_psu.py::test_for_psu_type PASSED [ 67%] test_rtc.py::test_for_rtc_read PASSED [ 68%] test_rtc.py::test_for_rtc_write PASSED [ 70%] test_sfp.py::test_for_sfp_number PASSED [ 71%] test_sfp.py::test_for_sfp_present PASSED [ 72%] test_sfp.py::test_for_sfp_eeprom PASSED [ 73%] test_sfp.py::test_for_sfp_lpmode PASSED [ 74%] test_sfp.py::test_for_sfp_reset PASSED [ 75%] test_thermal.py::test_for_num_temp PASSED [ 77%] test_thermal.py::test_for_temp_read PASSED [ 78%] test_thermal.py::test_for_temp_high_threshold_read PASSED [ 79%] test_thermal.py::test_for_temp_high_critical_threshold_read PASSED [ 80%] test_thermal.py::test_for_thermal_daemon SKIPPED (Skip the testing due to thermal policy not supported) [ 81%] test_thermal.py::test_for_thermal_policy SKIPPED (Skip the testing due to thermal policy not supported) [ 82%] test_thermal.py::test_for_thermal_policy_fan_removed SKIPPED (Skip the testing due to thermal policy not supported) [ 83%] test_thermal.py::test_for_pmon_daemon PASSED [ 85%] test_thermal.py::test_for_pmon_fan_removed_event_log SKIPPED (Skip the test due to All FAN are present) [ 86%] test_thermal.py::test_for_pmon_psu_removed_event_log SKIPPED (Skip the test due to All PSU are present) [ 87%] test_usb.py::test_for_usb_storage PASSED [ 88%] test_usb.py::test_for_usb_fat PASSED [ 89%] test_usb.py::test_for_usb_ntfs FAILED [ 90%] test_usb.py::test_for_usb_ext4 PASSED [ 91%] test_usb.py::test_for_usb_presence SKIPPED (USB disabled) [ 93%] test_usb.py::test_for_usb_mount SKIPPED (USB disabled) [ 94%] test_watchdog.py::test_for_get_watchdog_dev PASSED [ 95%] test_watchdog.py::test_for_arm_watchdog FAILED [ 96%] test_watchdog.py::test_for_get_watchdog_remaining_time PASSED [ 97%] test_watchdog.py::test_for_remaining_time_changed FAILED [ 98%] test_watchdog.py::test_for_disarm_watchdog PASSED [100%] ======================================================================================== FAILURES ======================================================================================== ___________________________________________________________________________________ test_for_eeprom_sn ___________________________________________________________________________________ json_config_data = {'PLATFORM': {'drivers': {'CPLD': {'driver_info': {'support': 'false'}}, 'EEPROM': {'driver_info': {'name': 'x86_64_uf...port': 'true'}, 'PSU': {'support': 'true'}, 'SYSLED': {'support': 'false'}, ...}, 'num_cplds': 3, 'num_fans': 12, ...}} json_test_data = {'PLATFORM': {'CONFIG': {'notpermitted': {'config.bcm': []}, 'required': {'config.bcm': []}}, 'CPLD': {'CPLD1': {'vers...}, 'FAN10': {'direction': 'exhaust'}, 'FAN11': {'direction': 'exhaust'}, 'FAN12': {'direction': 'exhaust'}, ...}, ...}} def test_for_eeprom_sn(json_config_data,json_test_data): """Test Purpose: Verify that the SERIAL read from EEPROM is matching with the test config JSON setting Args: arg1 (json): platform--config.json arg2 (json): test--config.json Example: For a system that physically supports 1 syseeprom, the SERIAL number is configured in the test--config.json test--config.json "EEPROM": { "mac": "00:11:22:33:44:55", "ser": "AABBCCDDEEFF", "model": "AAAA" }, """ _wrapper_init() for key in json_config_data: tst = json_test_data[key]['EEPROM']['ser'] if platform_chassis is not None: > val = platform_chassis.get_serial_number() E AttributeError: 'Chassis' object has no attribute 'get_serial_number' test_eeprom.py:150: AttributeError ___________________________________________________________________________________ test_for_usb_ntfs ____________________________________________________________________________________ def test_for_usb_ntfs(): """Test Purpose: Verify that if the NTFS filesystem support is enable in the kernel Args: None """ cmd = "cat /boot/config-* | grep ^CONFIG_NTFS_FS=" ret = subprocess.call(cmd + " > /dev/null 2>&1", shell=True) > assert ret == 0, "NTFS support is disabled in the kernel" E AssertionError: NTFS support is disabled in the kernel E assert 1 == 0 test_usb.py:52: AssertionError _________________________________________________________________________________ test_for_arm_watchdog __________________________________________________________________________________ json_config_data = {'PLATFORM': {'drivers': {'CPLD': {'driver_info': {'support': 'false'}}, 'EEPROM': {'driver_info': {'name': 'x86_64_uf...port': 'true'}, 'PSU': {'support': 'true'}, 'SYSLED': {'support': 'false'}, ...}, 'num_cplds': 3, 'num_fans': 12, ...}} json_test_data = {'PLATFORM': {'CONFIG': {'notpermitted': {'config.bcm': []}, 'required': {'config.bcm': []}}, 'CPLD': {'CPLD1': {'vers...}, 'FAN10': {'direction': 'exhaust'}, 'FAN11': {'direction': 'exhaust'}, 'FAN12': {'direction': 'exhaust'}, ...}, ...}} def test_for_arm_watchdog(json_config_data, json_test_data): """ Test Purpose: Verify the watchdog can be armed Args: arg1 (json): platform--config.json arg2 (json): test--config.json Example: Test config JSON setting for Watchdog arm Timeout configured "WDT": { "arm":{ "timeout":190 } } """ sec = json_test_data['PLATFORM']['WDT']['arm']['timeout'] if _wrapper_arm_watchdog(sec) != WDT_COMMON_ERROR: > assert _wrapper_watchdog_is_armed() == True, "watchdog is not active" E AssertionError: watchdog is not active E assert None == True E + where None = _wrapper_watchdog_is_armed() test_watchdog.py:103: AssertionError ____________________________________________________________________________ test_for_remaining_time_changed _____________________________________________________________________________ def test_for_remaining_time_changed(): """ Test Purpose: Verify the watchdog remaining time is keep changing ( Couting down ) Args: None """ Time1 = _wrapper_get_watchdog_remaining_time(); time.sleep(5) Time2 = _wrapper_get_watchdog_remaining_time(); > assert Time1 != Time2, "Watchdog remaining time is the same without changed" E AssertionError: Watchdog remaining time is the same without changed E assert None != None test_watchdog.py:124: AssertionError ==================================================================================== warnings summary ==================================================================================== test_bmc.py:3 /usr/local/sonic_pde_tests/test_bmc.py:3: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================================================================================ short test summary info ================================================================================= FAILED test_eeprom.py::test_for_eeprom_sn - AttributeError: 'Chassis' object has no attribute 'get_serial_number' FAILED test_usb.py::test_for_usb_ntfs - AssertionError: NTFS support is disabled in the kernel FAILED test_watchdog.py::test_for_arm_watchdog - AssertionError: watchdog is not active FAILED test_watchdog.py::test_for_remaining_time_changed - AssertionError: Watchdog remaining time is the same without changed ================================================================== 4 failed, 52 passed, 31 skipped, 1 warning in 40.82s ==================================================================