You've already forked open-source-firmware-validation
mirror of
https://github.com/Dasharo/open-source-firmware-validation.git
synced 2026-06-13 10:16:18 -07:00
c6952708f5
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
18 lines
761 B
Plaintext
18 lines
761 B
Plaintext
*** Keywords ***
|
|
Check Firmware Version
|
|
[Documentation] Keyword allows to check firmware version via dmidecode
|
|
[Arguments] ${expected_version}=${FW_VERSION}
|
|
${output}= Execute Command In Terminal dmidecode -t 0
|
|
Should Contain ${output} ${expected_version}
|
|
|
|
Get Firmware UUID
|
|
[Documentation] Keyword allows to check firmware UUID via dmidecode
|
|
${uuid}= Execute Command In Terminal dmidecode | grep UUID | awk -F': ' '{print $2}'
|
|
RETURN ${uuid}
|
|
|
|
Get Firmware Serial Number
|
|
[Documentation] Keyword allows to check firmware serial number via
|
|
... dmidecode
|
|
${serial_no}= Execute Command In Terminal dmidecode | grep Serial | awk -F': ' 'NR == 1 {print $2}'
|
|
RETURN ${serial_no}
|