From b2f6f26cf989de6be85454a6fc9773066558fcff Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 23 Oct 2026 01:09:49 -0700 Subject: [PATCH] ble - adding test success result to output --- api/ble.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api/ble.py b/api/ble.py index abddb48..0d805b3 100644 --- a/api/ble.py +++ b/api/ble.py @@ -509,11 +509,12 @@ if __name__ == "__main__": test_count = test_count + 1 this_test_result = [] log.info(f"Starting test run {test_count} of {count}") - test_label = f"Test {test_count} result" - # it's tricky, the test run is called here inside the json + # run test_driver here + this_test_sensors = test_driver(test_count = test_count, bt_usb_id = current_usb_id) + test_label = f"Test {test_count} result - {this_test_sensors['test_result']}" this_test_result = { "test_label": test_label, - "test_result": test_driver(test_count = test_count, bt_usb_id = current_usb_id) + "test_result": this_test_sensors } test_results.append(this_test_result)