Files
open-source-firmware-valida…/lib/framework.robot
Maciej Pijanowski 2bd2e50c9b robocop: enable ReplaceWithVAR formatter
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2025-07-29 10:41:24 +02:00

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}