2023-10-05 17:35:34 +02:00
|
|
|
*** Settings ***
|
2023-12-22 11:10:41 +01:00
|
|
|
Library Collections
|
2023-12-19 20:01:09 +01:00
|
|
|
Resource ../keywords.robot
|
2023-10-05 17:35:34 +02:00
|
|
|
|
2023-12-22 11:10:41 +01:00
|
|
|
|
2023-10-05 17:35:34 +02:00
|
|
|
*** Keywords ***
|
|
|
|
|
Get Linux Version ID
|
2023-12-21 10:03:55 +01:00
|
|
|
[Documentation] This keyword returns the linux version.
|
2023-10-05 17:35:34 +02:00
|
|
|
IF '${DUT_CONNECTION_METHOD}' == 'SSH'
|
|
|
|
|
${output}= SSHLibrary.Execute Command sh -c "cat /etc/os-release | grep VERSION_ID | cut -d '=' -f 2"
|
|
|
|
|
ELSE IF '${DUT_CONNECTION_METHOD}' == 'Telnet'
|
|
|
|
|
${output}= Telnet.Execute Command sh -c "cat /etc/os-release | grep VERSION_ID | cut -d '=' -f 2"
|
|
|
|
|
${output}= Get Line ${output} 0
|
|
|
|
|
ELSE
|
|
|
|
|
FAIL Connection method not supported for checking version
|
|
|
|
|
END
|
|
|
|
|
RETURN ${output}
|
2023-10-05 18:28:15 +02:00
|
|
|
|
|
|
|
|
Get Utility Version
|
2023-12-21 10:03:55 +01:00
|
|
|
[Documentation] This keyword checks whether a utility is available in the
|
|
|
|
|
... system and logs it's version.
|
2023-10-05 18:28:15 +02:00
|
|
|
[Arguments] ${utility}
|
2023-10-09 18:23:40 +02:00
|
|
|
${output}= Telnet.Execute Command ${utility} --version
|
2023-10-05 18:28:15 +02:00
|
|
|
Log ${output}
|
2023-10-06 14:24:02 +02:00
|
|
|
${output}= Telnet.Execute Command echo $?
|
|
|
|
|
${output}= Get Line ${output} 0
|
|
|
|
|
Should Be Equal As Strings ${output} 0
|
2023-12-19 20:01:09 +01:00
|
|
|
|
|
|
|
|
Check Unexpected Boot Errors
|
|
|
|
|
[Documentation] This keyword checks if any unexpected boot messages
|
|
|
|
|
... appear in kernel logs. Messages with loglevel 3 (error) or lower
|
|
|
|
|
... (more critical) are considered.
|
2025-07-25 15:29:43 +02:00
|
|
|
VAR @{dmesg_err_allowlist}= @{EMPTY}
|
2023-12-19 20:01:09 +01:00
|
|
|
# Harmless error on Bluetooth modules
|
|
|
|
|
Append To List ${dmesg_err_allowlist} Bluetooth: hci0: Malformed MSFT vendor event: 0x02
|
2024-08-12 14:50:43 +02:00
|
|
|
# Intel AX-series WiFi+BT adapters throw these when debug features are disabled
|
|
|
|
|
Append To List ${dmesg_err_allowlist} Bluetooth: hci0: No support for _PRR ACPI method
|
|
|
|
|
Append To List ${dmesg_err_allowlist} iwlwifi 0000:00:14.3: WRT: Invalid buffer destination
|
|
|
|
|
Append To List
|
|
|
|
|
... ${dmesg_err_allowlist}
|
|
|
|
|
... iwlwifi 0000:00:14.3: Not valid error log pointer 0x0027B0C0 for RT uCode
|
|
|
|
|
# GSC firmware loading via MEI fails when ME is disabled - not our bug
|
|
|
|
|
Append To List
|
|
|
|
|
... ${dmesg_err_allowlist}
|
|
|
|
|
... i915 0000:00:02.0: [drm] *ERROR* GT1: GSC proxy component didn't bind within the expected timeout
|
|
|
|
|
Append To List ${dmesg_err_allowlist} i915 0000:00:02.0: [drm] *ERROR* GT1: GSC proxy handler failed to init
|
|
|
|
|
# Not our bug
|
|
|
|
|
Append To List ${dmesg_err_allowlist} proc_thermal_pci 0000:00:04.0: error: proc_thermal_add, will continue
|
2025-09-05 12:37:50 +02:00
|
|
|
Append To List ${dmesg_err_allowlist} tmpfs: Unsupported parameter 'huge'
|
2025-09-24 07:47:30 +02:00
|
|
|
Append To List ${dmesg_err_allowlist} x86/mktme: No known encryption algorithm is supported: 0x4
|
2023-12-19 20:01:09 +01:00
|
|
|
${dmesg_err_txt}= Execute Linux Command dmesg -t -l err,crit,alert,emerg
|
|
|
|
|
@{dmesg_err_list}= Split To Lines ${dmesg_err_txt}
|
|
|
|
|
FOR ${error} IN @{dmesg_err_list}
|
2024-08-12 14:50:43 +02:00
|
|
|
Should Contain ${dmesg_err_allowlist} ${error}
|
2023-12-19 20:01:09 +01:00
|
|
|
END
|