You've already forked open-source-firmware-validation
mirror of
https://github.com/Dasharo/open-source-firmware-validation.git
synced 2026-03-06 14:51:55 -08:00
19 lines
820 B
Plaintext
19 lines
820 B
Plaintext
*** Keywords ***
|
|
Depends On Variable
|
|
[Documentation] Skips the test if ``variable`` does not exist.
|
|
[Arguments] ${variable}
|
|
${variable_exists}= Run Keyword And Return Status Variable Should Exist ${variable}
|
|
Depends On ${variable_exists} Variable: ${variable} is not defined
|
|
|
|
Depends On
|
|
[Documentation] Skips test if ``condition`` is not met. Test identifier
|
|
... (first word of its name) and optional ``reason`` is set
|
|
... to the test as per ``Skip`` keyword.
|
|
[Arguments] ${condition} ${reason}=${NONE}
|
|
VAR ${line}= ${TEST_NAME.split()}[0] not supported
|
|
IF "${reason}" != "${NONE}"
|
|
VAR ${line}= ${line}: ${reason}
|
|
END
|
|
${should_skip}= Evaluate not bool(${condition})
|
|
Skip If ${should_skip} ${line}
|