From: Sam Hague Date: Wed, 27 Jun 2018 21:38:49 +0000 (-0400) Subject: Add odltools library X-Git-Tag: pre-potassium~716 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=3e76699153d9fa4b1a3763d305331b09a019b2f4;hp=94a9c6478b7fe758c12533bfc9b52c47c9768864;p=integration%2Ftest.git Add odltools library Depends-On: I6c41f3d46e6a287eecf9882b55e3f3fd8f94a8a5 JIRA: ODLTOOLS-10 Change-Id: I63e40332485193d1d3fb448a81097e65d0a3a589 Signed-off-by: Sam Hague --- diff --git a/csit/libraries/ODLTools.robot b/csit/libraries/ODLTools.robot new file mode 100644 index 0000000000..dc07700acc --- /dev/null +++ b/csit/libraries/ODLTools.robot @@ -0,0 +1,11 @@ +*** Settings *** +Documentation Robot wrapper around ODLTools. + +*** Keywords *** +Version + [Documentation] Get the odltools version + ${cmd} = BuiltIn.Set Variable odltools -V + ${rc} ${output} = OperatingSystem.Run And Return Rc And Output ${cmd} + BuiltIn.Log rc: ${rc}, output: ${output} + BuiltIn.Should Be True '${rc}' == '0' + [Return] ${output}