You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keywords to split and join command line arguments would be handy when creating command to be executed. For example, keywords in the Process library typically accept a list of arguments, but more complex expressions to be run in shell need to be given as a single string.
*** Variables ***${STR ARGS} arg "second arg"
@{LIST ARGS} arg second arg
*** Test Cases ***Command line to list${args} = Command line to list ${STR ARGS}
Should be equal ${result}${LIST ARGS}List to command line${args} = List to command line ${LIST ARGS}
Should be equal ${result}${STR ARGS}
We noticed the need for these keywords when cleaning up Robot's own acceptance test execution system (#2091). We plan to use the names used above, but that can still change. Although the current plan is to add them to the Process library, the keywords themselves are generic.
The text was updated successfully, but these errors were encountered:
- Added new 'Command Line To List' and 'List To Command Line' keywords to the
Process library to ease splitting/joining cli args. Test and code review as
well as documentation still missing. #2160
- Replaced simple 'shlex.split' usage in atests with the aforementioned
Command Line To List keyword in Robot data and with enhanced shlex usage
in Python libraries.
- Added output files to generic Robot/Rebot execution keywords to avoid output
streams getting full and execution hang on Windows.
- Added 5 minute timeouts to Robot/Rebot execution keywords to avoid hanging
in general.
Above fixes related to the overall atest execution cleanup (#2091).
Keywords to split and join command line arguments would be handy when creating command to be executed. For example, keywords in the Process library typically accept a list of arguments, but more complex expressions to be run in shell need to be given as a single string.
We noticed the need for these keywords when cleaning up Robot's own acceptance test execution system (#2091). We plan to use the names used above, but that can still change. Although the current plan is to add them to the Process library, the keywords themselves are generic.
The text was updated successfully, but these errors were encountered: