Verify no BMC dump exist

This is to catch openbmc/openbmc#3028 bugs during CI run.

Resolves  openbmc/openbmc-test-automation#1310

Change-Id: Iea7a6c035f39e5c8237b8344d4ce767cf5fa68e3
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/test_lists/CT_basic_run b/test_lists/CT_basic_run
index c81ad36..ddaf325 100644
--- a/test_lists/CT_basic_run
+++ b/test_lists/CT_basic_run
@@ -26,3 +26,5 @@
 #Energy scale
 -i Escale_Power_Setting_Via_REST_And_Verify
 -i Escale_Deactivation_Test_Via_REST
+# Check for BMC dump.
+-i Verify_No_BMC_Dump
diff --git a/test_lists/HW_CI b/test_lists/HW_CI
index b1b7bec..de55abf 100644
--- a/test_lists/HW_CI
+++ b/test_lists/HW_CI
@@ -18,3 +18,5 @@
 -i Multiple_Requests_On_BMC_Using_Single_REST_Session
 -i REST_Delete_All_Sessions_And_Expect_Error
 -i REST_Logout_Session_To_BMC
+# Check for BMC dump.
+-i Verify_No_BMC_Dump
diff --git a/tests/test_xit.robot b/tests/test_xit.robot
index edd0c3c..0286a8b 100644
--- a/tests/test_xit.robot
+++ b/tests/test_xit.robot
@@ -3,6 +3,7 @@
 
 Resource        ../lib/code_update_utils.robot
 Resource        ../lib/openbmc_ffdc.robot
+Resource        ../lib/dump_utils.robot
 
 Test Teardown   FFDC On Test Case Fail
 
@@ -15,3 +16,12 @@
     # It is to ensure that the setting is not changed during CT
     Field Mode Should Be Enabled
     Disable Field Mode And Verify Unmount
+
+
+Verify No BMC Dump
+    [Documentation]  Verify no BMC dump exist.
+    [Tags]  Verify_No_BMC_Dump
+
+    ${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.