Return True if test_check_crash finds no crash report.
Fix yapf prehook test errors.
Test: None
Bug: 33820284
Change-Id: Ic4c2c16f0d8cf84e5879a205f68a910b65f1470b
diff --git a/acts/tests/google/tel/live/TelLivePreflightTest.py b/acts/tests/google/tel/live/TelLivePreflightTest.py
index c9d12ef..a676920 100644
--- a/acts/tests/google/tel/live/TelLivePreflightTest.py
+++ b/acts/tests/google/tel/live/TelLivePreflightTest.py
@@ -52,15 +52,14 @@
class TelLivePreflightTest(TelephonyBaseTest):
+
def __init__(self, controllers):
TelephonyBaseTest.__init__(self, controllers)
self.wifi_network_ssid = self.user_params.get(
- "wifi_network_ssid") or self.user_params.get(
- "wifi_network_ssid_2g")
+ "wifi_network_ssid") or self.user_params.get("wifi_network_ssid_2g")
self.wifi_network_pass = self.user_params.get(
- "wifi_network_pass") or self.user_params.get(
- "wifi_network_pass_2g")
+ "wifi_network_pass") or self.user_params.get("wifi_network_pass_2g")
""" Tests Begin """
@@ -74,8 +73,7 @@
try:
if not ensure_wifi_connected(self.log, ad, self.wifi_network_ssid,
self.wifi_network_pass):
- self._preflight_fail("{}: WiFi connect fail.".format(
- ad.serial))
+ self._preflight_fail("{}: WiFi connect fail.".format(ad.serial))
if (not wait_for_wifi_data_connection(self.log, ad, True) or
not verify_http_connection(self.log, ad)):
self._preflight_fail("{}: Data not available on WiFi.".format(
@@ -91,9 +89,8 @@
#check for sim and service
subInfo = ad.droid.subscriptionGetAllSubInfoList()
if not subInfo or len(subInfo) < 1:
- self._preflight_fail(
- "{}: Unable to find A valid subscription!".format(
- ad.serial))
+ self._preflight_fail("{}: Unable to find A valid subscription!".
+ format(ad.serial))
toggle_airplane_mode(self.log, ad, False, strict_checking=False)
if ad.droid.subscriptionGetDefaultDataSubId() <= INVALID_SUB_ID:
self._preflight_fail("{}: No Default Data Sub ID".format(
@@ -116,12 +113,9 @@
msg = "Find crash reports %s" % (ad.crash_report)
ad.log.error(msg)
fail(msg)
+ return True
def _preflight_fail(self, message):
self.log.error(
"Aborting all ongoing tests due to preflight check failure.")
abort_all(message)
-
-
-""" Tests End """
-