Stability improvements to BtCar tests
Check profile connected apis before
trying to look for the broadcast
receivers.
Increase pair attemps for non-pairing
attempt testcases.
Add sleep between clearing bonded devices
and pairing where necessary since the
stack needs time to reset.
Test: manual - execute automation manually
Change-Id: Icca05c1aca386da6422587b7fa67e10ed53c87b0
diff --git a/acts/tests/google/bt/car_bt/BtCarHfpTest.py b/acts/tests/google/bt/car_bt/BtCarHfpTest.py
index dca44b8..ad852e0 100644
--- a/acts/tests/google/bt/car_bt/BtCarHfpTest.py
+++ b/acts/tests/google/bt/car_bt/BtCarHfpTest.py
@@ -48,14 +48,7 @@
if not bt_test_utils.connect_pri_to_sec(self.hf, self.ag, set(
[BtEnum.BluetoothProfile.HEADSET_CLIENT.value])):
self.log.error("Failed to connect")
- # Additional profile connection check
- if bt_test_utils.is_hfp_client_device_connected(
- self.hf, self.ag.droid.bluetoothGetLocalAddress()):
- self.log.info(
- "HFP Client connected even though connection state changed "
- + " event not found")
- else:
- return False
+ return False
return True
#@BluetoothTest(UUID=4ce2195a-b70a-4584-912e-cbd20d20e19d)