Verify System State
Resolves openbmc/openbmc-test-automation#550
Change-Id: I95025bab137e991443c976afa4ea275707870d0d
Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
diff --git a/syslib/utils_config.robot b/syslib/utils_config.robot
index e7317c2..15ea017 100755
--- a/syslib/utils_config.robot
+++ b/syslib/utils_config.robot
@@ -61,3 +61,17 @@
Log ${\n}${output} console=yes
Should Not Contain ${output} could not be found
... msg=Error: opal-prd.service is not installed.
+
+Verify No Gard Records
+ [Documentation] Verify no gard records are present on OS.
+ ${output} ${stderr}= Execute Command opal-gard list
+ ... return_stderr=True
+ Should Be Empty ${stderr}
+ Should Contain ${output} No GARD entries to display
+
+Verify No Error Logs
+ [Documentation] Verify no error logs.
+ ${output} ${stderr}= Execute Command dmesg -xT -l emerg,alert,crit,err
+ ... return_stderr=True
+ Should Be Empty ${stderr}
+ Should Be Empty ${output}