[CTS]Add log for better debug

Add test AP RSSI to the failure log to easily identify reason.

Bug: 149971206
Test: atest WifiRttTest#testRangingToTestAp
Change-Id: I5a8ed7604eca1c0a01527fd6f52f48925adeef19
This commit is contained in:
Nate(Qiang) Jiang
2020-02-24 17:51:32 -08:00
parent 97da47d0dd
commit d5d0b84cab

View File

@@ -163,7 +163,7 @@ public class WifiRttTest extends TestBase {
// Analyze results
assertTrue("Wi-Fi RTT failure rate exceeds threshold: FAIL=" + numFailures + ", ITERATIONS="
+ NUM_OF_RTT_ITERATIONS,
+ NUM_OF_RTT_ITERATIONS + ", AP RSSI=" + testAp.level,
numFailures <= NUM_OF_RTT_ITERATIONS * MAX_FAILURE_RATE_PERCENT / 100);
if (numFailures != NUM_OF_RTT_ITERATIONS) {
double distanceAvg = distanceSum / (NUM_OF_RTT_ITERATIONS - numFailures);