Check for application failure on HW_CI group test at the end
Changes:
- Add a code check for application failure.
- Update tag in test_lists/HW_CI
- Update tag in test_lists/CT_basic_run
Change-Id: Ic7a3d2de9eb2fb6709858b282a2c66910d031a53
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/test_lists/CT_basic_run b/test_lists/CT_basic_run
index eac9451..1e32813 100644
--- a/test_lists/CT_basic_run
+++ b/test_lists/CT_basic_run
@@ -38,4 +38,4 @@
#BMC sync list test
-i Test_BMC_Alt_Side_Mirroring
# Check for BMC dump.
--i Verify_No_BMC_Dump
+-i Verify_No_BMC_Dump_And_Application_Failures
diff --git a/test_lists/HW_CI b/test_lists/HW_CI
index 926c1f6..254c228 100644
--- a/test_lists/HW_CI
+++ b/test_lists/HW_CI
@@ -8,7 +8,7 @@
#Verify system boot time average
-i Verify_Uptime_Average_Against_Threshold
#Check for BMC dump.
--i Verify_No_BMC_Dump
+-i Verify_No_BMC_Dump_And_Application_Failures
#Redfish tests cases.
-i Redfish_Login_And_Logout
-i GET_Redfish_Hypermedia_Without_Login
diff --git a/tests/test_xit.robot b/tests/test_xit.robot
index 4c39ab0..5b06919 100644
--- a/tests/test_xit.robot
+++ b/tests/test_xit.robot
@@ -7,6 +7,11 @@
Test Teardown FFDC On Test Case Fail
+*** Variables ***
+
+# Error strings to check from journald.
+${ERROR_REGEX} SEGV|core-dump|FAILURE|Failed to start
+
*** Test Cases ***
Verify Field Mode Is Disable
@@ -19,10 +24,12 @@
Disable Field Mode And Verify Unmount
-Verify No BMC Dump
+Verify No BMC Dump And Application Failures
[Documentation] Verify no BMC dump exist.
- [Tags] Verify_No_BMC_Dump
+ [Tags] Verify_No_BMC_Dump_And_Application_Failures
${resp}= OpenBMC Get Request ${DUMP_ENTRY_URI}list
Should Be Equal As Strings ${resp.status_code} ${HTTP_NOT_FOUND}
... msg=BMC dump(s) were not deleted as expected.
+
+ Check For Regex In Journald ${ERROR_REGEX} error_check=${0} boot=-b