Add crash report checking support.

- Check crash reports in /data/tombstones/ and /data/rampdumps/ before and after test.
- Gather crash reports in the test log directory.

Test: run acts in lab.
Bug: 33820284
Change-Id: I7a6d4ace27ca87fd84bf5c32a1521fb5ea677adf
diff --git a/acts/tests/google/tel/live/TelLivePreflightTest.py b/acts/tests/google/tel/live/TelLivePreflightTest.py
index 146fc47..c9d12ef 100644
--- a/acts/tests/google/tel/live/TelLivePreflightTest.py
+++ b/acts/tests/google/tel/live/TelLivePreflightTest.py
@@ -48,6 +48,7 @@
 from acts.test_utils.tel.tel_test_utils import wait_for_wifi_data_connection
 from acts.test_utils.tel.tel_voice_utils import phone_setup_volte
 from acts.asserts import abort_all
+from acts.asserts import fail
 
 
 class TelLivePreflightTest(TelephonyBaseTest):
@@ -107,6 +108,15 @@
                     "{}: Did Not Attach For Voice Services".format(ad.serial))
         return True
 
+    @TelephonyBaseTest.tel_test_wrap
+    def test_check_crash(self):
+        for ad in self.android_devices:
+            ad.crash_report = ad.check_crash_report()
+            if ad.crash_report:
+                msg = "Find crash reports %s" % (ad.crash_report)
+                ad.log.error(msg)
+                fail(msg)
+
     def _preflight_fail(self, message):
         self.log.error(
             "Aborting all ongoing tests due to preflight check failure.")