From 49d329b5e370de94eace3f90198b6e4dfbf7e092 Mon Sep 17 00:00:00 2001 From: Sangwook Ha Date: Wed, 21 Jun 2023 23:52:03 -0700 Subject: [PATCH] Add argon stream keywords Argon stream keywords have not been added yet. Add the missing keywords. Change-Id: If55516d627024556d8bc24c365a02c25e15ab4e4 Signed-off-by: Sangwook Ha --- csit/libraries/CompareStream.robot | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/csit/libraries/CompareStream.robot b/csit/libraries/CompareStream.robot index 7fe521a304..bcb10bb13a 100644 --- a/csit/libraries/CompareStream.robot +++ b/csit/libraries/CompareStream.robot @@ -80,6 +80,11 @@ Set_Variable_If_At_Least_Chlorine [Arguments] ${value_if_true} ${value_if_false} BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Least chlorine ${value_if_true} ${value_if_false} +Set_Variable_If_At_Least_Argon + [Documentation] Compare argon to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at least argon, return ${value_if_false} otherwise. + [Arguments] ${value_if_true} ${value_if_false} + BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Least argon ${value_if_true} ${value_if_false} + Set_Variable_If_At_Most_Neon [Documentation] Compare neon to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at most neon, ... return ${value_if_false} otherwise. @@ -128,6 +133,12 @@ Set_Variable_If_At_Most_Chlorine [Arguments] ${value_if_true} ${value_if_false} BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Most chlorine ${value_if_true} ${value_if_false} +Set_Variable_If_At_Most_Argon + [Documentation] Compare argon to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at most argon, + ... return ${value_if_false} otherwise. + [Arguments] ${value_if_true} ${value_if_false} + BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Most argon ${value_if_true} ${value_if_false} + CompareStream__Convert_Input [Documentation] Splits arguments into args and kwargs is used in Run_Keyword_If_At_Least_Else and Run_Keyword_If_At_Most_Else. ... The problem is, when the string contains =, but it is not a named argument (name=value). There can be many values containing =, but @@ -305,6 +316,12 @@ Run_Keyword_If_At_Least_Chlorine [Arguments] ${kw_name} @{varargs} &{kwargs} BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Least chlorine ${kw_name} @{varargs} &{kwargs} +Run_Keyword_If_At_Least_Argon + [Documentation] Compare argon to ${ODL_STREAM} and in case ${ODL_STREAM} is at least argon, + ... run ${kw_name} @{varargs} &{kwargs} and return its value. + [Arguments] ${kw_name} @{varargs} &{kwargs} + BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Least argon ${kw_name} @{varargs} &{kwargs} + Run_Keyword_If_At_Most_Neon [Documentation] Compare neon to ${ODL_STREAM} and in case ${ODL_STREAM} is at most neon, ... run ${kw_name} @{varargs} &{kwargs} and return its value. @@ -353,6 +370,12 @@ Run_Keyword_If_At_Most_Chlorine [Arguments] ${kw_name} @{varargs} &{kwargs} BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Most chlorine ${kw_name} @{varargs} &{kwargs} +Run_Keyword_If_At_Most_Argon + [Documentation] Compare argon to ${ODL_STREAM} and in case ${ODL_STREAM} is at most argon, + ... run ${kw_name} @{varargs} &{kwargs} and return its value. + [Arguments] ${kw_name} @{varargs} &{kwargs} + BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Most argon ${kw_name} @{varargs} &{kwargs} + Run_Keyword_If_More_Than_Neon [Documentation] Compare neon to ${ODL_STREAM} and in case ${ODL_STREAM} is more than neon, ... run ${kw_name} @{varargs} &{kwargs} and return its value. @@ -401,6 +424,12 @@ Run_Keyword_If_More_Than_Chlorine [Arguments] ${kw_name} @{varargs} &{kwargs} BuiltIn.Run_Keyword_And_Return Run_Keyword_If_More_Than chlorine ${kw_name} @{varargs} &{kwargs} +Run_Keyword_If_More_Than_Argon + [Documentation] Compare argon to ${ODL_STREAM} and in case ${ODL_STREAM} is more than argon, + ... run ${kw_name} @{varargs} &{kwargs} and return its value. + [Arguments] ${kw_name} @{varargs} &{kwargs} + BuiltIn.Run_Keyword_And_Return Run_Keyword_If_More_Than argon ${kw_name} @{varargs} &{kwargs} + Run_Keyword_If_Less_Than_Sodium [Documentation] Compare sodium to ${ODL_STREAM} and in case ${ODL_STREAM} is less than sodium, ... run ${kw_name} @{varargs} &{kwargs} and return its value. @@ -442,3 +471,9 @@ Run_Keyword_If_Less_Than_Chlorine ... run ${kw_name} @{varargs} &{kwargs} and return its value. [Arguments] ${kw_name} @{varargs} &{kwargs} BuiltIn.Run_Keyword_And_Return Run_Keyword_If_Less_Than chlorine ${kw_name} @{varargs} &{kwargs} + +Run_Keyword_If_Less_Than_Argon + [Documentation] Compare argon to ${ODL_STREAM} and in case ${ODL_STREAM} is less than argon, + ... run ${kw_name} @{varargs} &{kwargs} and return its value. + [Arguments] ${kw_name} @{varargs} &{kwargs} + BuiltIn.Run_Keyword_And_Return Run_Keyword_If_Less_Than argon ${kw_name} @{varargs} &{kwargs} -- 2.36.6