Add odltools library 05/73505/6
authorSam Hague <shague@redhat.com>
Wed, 27 Jun 2018 21:38:49 +0000 (17:38 -0400)
committerSam Hague <shague@redhat.com>
Wed, 27 Jun 2018 23:33:58 +0000 (19:33 -0400)
Depends-On: I6c41f3d46e6a287eecf9882b55e3f3fd8f94a8a5
JIRA: ODLTOOLS-10
Change-Id: I63e40332485193d1d3fb448a81097e65d0a3a589
Signed-off-by: Sam Hague <shague@redhat.com>
csit/libraries/ODLTools.robot [new file with mode: 0644]

diff --git a/csit/libraries/ODLTools.robot b/csit/libraries/ODLTools.robot
new file mode 100644 (file)
index 0000000..dc07700
--- /dev/null
@@ -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}