Auto restart mission critical BMC services
This is to ensure these services are running and active at all times.
Resolves openbmc/openbmc-test-automation#130
Change-Id: I6a9325582b1fa80ff826165f2cb0e9fb05e2dbc3
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index dbfcb77..87f1f52 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -634,3 +634,11 @@
Should Be Empty ${stderr}
${btime}= Convert To Integer ${output}
[Return] ${btime}
+
+
+Execute Command On BMC
+ [Documentation] Execute given command on BMC and return output.
+ [Arguments] ${command}
+ ${stdout} ${stderr}= Execute Command ${command} return_stderr=True
+ Should Be Empty ${stderr}
+ [Return] ${stdout}