ble - fail test if over mac_count * 25 loops
This commit is contained in:
1 parent
0f6ddef87f
commit
75a9ac32da
1 file changed
+2
-2
+2
-2
@@ -329,8 +329,8 @@ def test_driver(test_count = 0, bt_usb_id = None):
|
|||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
# If not, then re-scan the failed sensors
|
# If not, then re-scan the failed sensors
|
||||||
elif test_loop_count > 100:
|
elif test_loop_count > len(mac_list) * 25:
|
||||||
log.error(f"Test has gone on too long, failing test, rfkill bluetooth, will begin next test run.")
|
log.error(f"Test has reached {len(mac_list) * 25} loops, failing test, rfkill bluetooth, will begin next test run.")
|
||||||
rkill_bt()
|
rkill_bt()
|
||||||
test_complete = True
|
test_complete = True
|
||||||
result = {
|
result = {
|
||||||
|
|||||||
Reference in new issue
Block a user